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
ccd4479c
Commit
ccd4479c
authored
Oct 26, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fixed WM_SETFONT combo box tests.
parent
3d3ab1cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
combo.c
dlls/user32/tests/combo.c
+7
-3
No files found.
dlls/user32/tests/combo.c
View file @
ccd4479c
...
@@ -117,6 +117,10 @@ static void test_setfont(DWORD style)
...
@@ -117,6 +117,10 @@ static void test_setfont(DWORD style)
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
105
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
105
);
/* The size of the dropped control is initially equal to the size
of the window when it was created. The size of the calculated
dropped area changes only by how much the selection area
changes, not by how much the list area changes. */
if
(
font_height
(
hFont1
)
==
10
&&
font_height
(
hFont2
)
==
8
)
if
(
font_height
(
hFont1
)
==
10
&&
font_height
(
hFont2
)
==
8
)
{
{
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont1
,
FALSE
);
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont1
,
FALSE
);
...
@@ -124,21 +128,21 @@ static void test_setfont(DWORD style)
...
@@ -124,21 +128,21 @@ static void test_setfont(DWORD style)
expect_rect
(
r
,
0
,
0
,
100
,
18
);
expect_rect
(
r
,
0
,
0
,
100
,
18
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
99
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
105
-
(
font_height
(
GetStockObject
(
SYSTEM_FONT
))
-
font_height
(
hFont1
))
);
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont2
,
FALSE
);
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont2
,
FALSE
);
GetClientRect
(
hCombo
,
&
r
);
GetClientRect
(
hCombo
,
&
r
);
expect_rect
(
r
,
0
,
0
,
100
,
16
);
expect_rect
(
r
,
0
,
0
,
100
,
16
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
97
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
105
-
(
font_height
(
GetStockObject
(
SYSTEM_FONT
))
-
font_height
(
hFont2
))
);
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont1
,
FALSE
);
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont1
,
FALSE
);
GetClientRect
(
hCombo
,
&
r
);
GetClientRect
(
hCombo
,
&
r
);
expect_rect
(
r
,
0
,
0
,
100
,
18
);
expect_rect
(
r
,
0
,
0
,
100
,
18
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
99
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
105
-
(
font_height
(
GetStockObject
(
SYSTEM_FONT
))
-
font_height
(
hFont1
))
);
}
}
else
else
{
{
...
...
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