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
d668e764
Commit
d668e764
authored
Feb 06, 2011
by
Alexander Kochetkov
Committed by
Alexandre Julliard
Feb 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fixed height of comboboxex32.
parent
dbc8c9c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
1 deletion
+49
-1
comboex.c
dlls/comctl32/comboex.c
+1
-1
comboex.c
dlls/comctl32/tests/comboex.c
+48
-0
No files found.
dlls/comctl32/comboex.c
View file @
d668e764
...
...
@@ -1693,7 +1693,7 @@ static LRESULT COMBOEX_WindowPosChanging (const COMBOEX_INFO *infoPtr, WINDOWPOS
height
=
(
cb_wrect
.
bottom
-
cb_wrect
.
top
)
+
(
cbx_wrect
.
bottom
-
cbx_wrect
.
top
)
-
(
cbx_crect
.
bottom
-
cbx_crect
.
top
);
if
(
wp
->
cy
<
height
)
wp
->
cy
=
height
;
wp
->
cy
=
height
;
if
(
infoPtr
->
hwndEdit
)
{
COMBOEX_AdjustEditPos
(
infoPtr
);
InvalidateRect
(
infoPtr
->
hwndCombo
,
0
,
TRUE
);
...
...
dlls/comctl32/tests/comboex.c
View file @
d668e764
...
...
@@ -380,6 +380,53 @@ static void test_CB_GETLBTEXT(void)
DestroyWindow
(
hCombo
);
}
static
void
test_WM_WINDOWPOSCHANGING
(
void
)
{
HWND
hCombo
;
WINDOWPOS
wp
;
RECT
rect
;
int
combo_height
;
int
ret
;
hCombo
=
createComboEx
(
WS_BORDER
|
WS_VISIBLE
|
WS_CHILD
|
CBS_DROPDOWN
);
ok
(
hCombo
!=
NULL
,
"createComboEx failed
\n
"
);
ret
=
GetWindowRect
(
hCombo
,
&
rect
);
ok
(
ret
,
"GetWindowRect failed
\n
"
);
combo_height
=
rect
.
bottom
-
rect
.
top
;
ok
(
combo_height
>
0
,
"wrong combo height
\n
"
);
/* Test height > combo_height */
wp
.
x
=
rect
.
left
;
wp
.
y
=
rect
.
top
;
wp
.
cx
=
(
rect
.
right
-
rect
.
left
);
wp
.
cy
=
combo_height
*
2
;
wp
.
flags
=
0
;
wp
.
hwnd
=
hCombo
;
wp
.
hwndInsertAfter
=
NULL
;
ret
=
SendMessageA
(
hCombo
,
WM_WINDOWPOSCHANGING
,
0
,
(
LPARAM
)
&
wp
);
ok
(
ret
==
0
,
"expected 0, got %x"
,
ret
);
ok
(
wp
.
cy
==
combo_height
,
"Expected height %d, got %d
\n
"
,
combo_height
,
wp
.
cy
);
/* Test height < combo_height */
wp
.
x
=
rect
.
left
;
wp
.
y
=
rect
.
top
;
wp
.
cx
=
(
rect
.
right
-
rect
.
left
);
wp
.
cy
=
combo_height
/
2
;
wp
.
flags
=
0
;
wp
.
hwnd
=
hCombo
;
wp
.
hwndInsertAfter
=
NULL
;
ret
=
SendMessageA
(
hCombo
,
WM_WINDOWPOSCHANGING
,
0
,
(
LPARAM
)
&
wp
);
ok
(
ret
==
0
,
"expected 0, got %x"
,
ret
);
ok
(
wp
.
cy
==
combo_height
,
"Expected height %d, got %d
\n
"
,
combo_height
,
wp
.
cy
);
ret
=
DestroyWindow
(
hCombo
);
ok
(
ret
,
"DestroyWindow failed
\n
"
);
}
static
LRESULT
CALLBACK
ComboExTestWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
msg
)
{
...
...
@@ -528,6 +575,7 @@ START_TEST(comboex)
test_comboboxex
();
test_WM_LBUTTONDOWN
();
test_CB_GETLBTEXT
();
test_WM_WINDOWPOSCHANGING
();
test_comboboxex_subclass
();
test_get_set_item
();
...
...
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