Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ac073847
Commit
ac073847
authored
Mar 08, 2013
by
Sergey Guralnik
Committed by
Alexandre Julliard
Mar 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use window height/width instead of client for combo resizing.
parent
0515b44f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
combo.c
dlls/user32/combo.c
+12
-8
No files found.
dlls/user32/combo.c
View file @
ac073847
...
...
@@ -1507,7 +1507,7 @@ static void CBResetPos(
/***********************************************************************
* COMBO_Size
*/
static
void
COMBO_Size
(
LPHEADCOMBO
lphc
,
LPARAM
lParam
)
static
void
COMBO_Size
(
LPHEADCOMBO
lphc
)
{
/*
* Those controls are always the same height. So we have to make sure
...
...
@@ -1515,8 +1515,12 @@ static void COMBO_Size( LPHEADCOMBO lphc, LPARAM lParam )
*/
if
(
CB_GETTYPE
(
lphc
)
!=
CBS_SIMPLE
)
{
int
newComboHeight
;
int
newComboHeight
,
curComboHeight
,
curComboWidth
;
RECT
rc
;
GetWindowRect
(
lphc
->
self
,
&
rc
);
curComboHeight
=
rc
.
bottom
-
rc
.
top
;
curComboWidth
=
rc
.
right
-
rc
.
left
;
newComboHeight
=
CBGetTextAreaHeight
(
lphc
->
self
,
lphc
)
+
2
*
COMBO_YBORDERSIZE
();
/*
...
...
@@ -1527,18 +1531,18 @@ static void COMBO_Size( LPHEADCOMBO lphc, LPARAM lParam )
* the actual control, for example, to do the layout of a dialog that is
* resized, the height of the dropdown is not changed.
*/
if
(
HIWORD
(
lParam
)
>
newComboHeight
)
if
(
curComboHeight
>
newComboHeight
)
{
TRACE
(
"oldComboHeight=%d, newComboHeight=%d, oldDropBottom=%d, oldDropTop=%d
\n
"
,
HIWORD
(
lParam
)
,
newComboHeight
,
lphc
->
droppedRect
.
bottom
,
curComboHeight
,
newComboHeight
,
lphc
->
droppedRect
.
bottom
,
lphc
->
droppedRect
.
top
);
lphc
->
droppedRect
.
bottom
=
lphc
->
droppedRect
.
top
+
HIWORD
(
lParam
)
-
newComboHeight
;
lphc
->
droppedRect
.
bottom
=
lphc
->
droppedRect
.
top
+
curComboHeight
-
newComboHeight
;
}
/*
* Restore original height
*/
if
(
HIWORD
(
lParam
)
!=
newComboHeight
)
SetWindowPos
(
lphc
->
self
,
0
,
0
,
0
,
LOWORD
(
lParam
)
,
newComboHeight
,
if
(
curComboHeight
!=
newComboHeight
)
SetWindowPos
(
lphc
->
self
,
0
,
0
,
0
,
curComboWidth
,
newComboHeight
,
SWP_NOZORDER
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
}
...
...
@@ -1862,7 +1866,7 @@ LRESULT ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
}
case
WM_SIZE
:
if
(
lphc
->
hWndLBox
&&
!
(
lphc
->
wState
&
CBF_NORESIZE
)
)
COMBO_Size
(
lphc
,
lParam
);
!
(
lphc
->
wState
&
CBF_NORESIZE
)
)
COMBO_Size
(
lphc
);
return
TRUE
;
case
WM_SETFONT
:
COMBO_Font
(
lphc
,
(
HFONT
)
wParam
,
(
BOOL
)
lParam
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment