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
71d77d98
Commit
71d77d98
authored
Aug 30, 2007
by
Mikolaj Zalewski
Committed by
Alexandre Julliard
Aug 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: combo: CB_SETITEMHEIGHT should make the edit area 2px higher than the item (with testcase).
parent
d99882a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
combo.c
dlls/user32/combo.c
+1
-1
combo.c
dlls/user32/tests/combo.c
+25
-0
No files found.
dlls/user32/combo.c
View file @
71d77d98
...
...
@@ -1640,7 +1640,7 @@ static LRESULT COMBO_SetItemHeight( LPHEADCOMBO lphc, INT index, INT height )
{
if
(
height
<
32768
)
{
lphc
->
editHeight
=
height
;
lphc
->
editHeight
=
height
+
2
;
/* Is the 2 for 2*EDIT_CONTROL_PADDING? */
/*
* Redo the layout of the control.
...
...
dlls/user32/tests/combo.c
View file @
71d77d98
...
...
@@ -69,6 +69,29 @@ static int is_font_installed(const char *name)
return
ret
;
}
static
void
test_setitemheight
(
DWORD
style
)
{
HWND
hCombo
=
build_combo
(
style
);
RECT
r
;
int
i
;
trace
(
"Style %x
\n
"
,
style
);
GetClientRect
(
hCombo
,
&
r
);
expect_rect
(
r
,
0
,
0
,
100
,
24
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
105
);
for
(
i
=
1
;
i
<
30
;
i
++
)
{
SendMessage
(
hCombo
,
CB_SETITEMHEIGHT
,
-
1
,
i
);
GetClientRect
(
hCombo
,
&
r
);
expect_eq
(
r
.
bottom
-
r
.
top
,
i
+
6
,
int
,
"%d"
);
}
DestroyWindow
(
hCombo
);
}
static
void
test_setfont
(
DWORD
style
)
{
HWND
hCombo
=
build_combo
(
style
);
...
...
@@ -224,6 +247,8 @@ START_TEST(combo)
test_setfont
(
CBS_DROPDOWN
);
test_setfont
(
CBS_DROPDOWNLIST
);
test_setitemheight
(
CBS_DROPDOWN
);
test_setitemheight
(
CBS_DROPDOWNLIST
);
test_CBN_SELCHANGE
();
DestroyWindow
(
hMainWnd
);
...
...
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