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
cf829959
Commit
cf829959
authored
Oct 07, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix failures on W2K and below.
parent
63f15d44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
combo.c
dlls/user32/tests/combo.c
+16
-6
No files found.
dlls/user32/tests/combo.c
View file @
cf829959
...
...
@@ -273,22 +273,32 @@ static void test_WM_LBUTTONDOWN(void)
LRESULT
result
;
int
i
,
idx
;
RECT
rect
;
W
CHAR
buffer
[
3
];
CHAR
buffer
[
3
];
static
const
UINT
choices
[]
=
{
8
,
9
,
10
,
11
,
12
,
14
,
16
,
18
,
20
,
22
,
24
,
26
,
28
,
36
,
48
,
72
};
static
const
WCHAR
stringFormat
[]
=
{
'%'
,
'2'
,
'd'
,
'\0'
};
static
const
CHAR
stringFormat
[]
=
"%2d"
;
BOOL
ret
;
BOOL
(
WINAPI
*
pGetComboBoxInfo
)(
HWND
,
PCOMBOBOXINFO
);
pGetComboBoxInfo
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"user32.dll"
),
"GetComboBoxInfo"
);
if
(
!
pGetComboBoxInfo
){
win_skip
(
"GetComboBoxInfo is not available
\n
"
);
return
;
}
hCombo
=
CreateWindow
(
"ComboBox"
,
"Combo"
,
WS_VISIBLE
|
WS_CHILD
|
CBS_DROPDOWN
,
0
,
0
,
200
,
150
,
hMainWnd
,
(
HMENU
)
COMBO_ID
,
NULL
,
0
);
for
(
i
=
0
;
i
<
sizeof
(
choices
)
/
sizeof
(
UINT
);
i
++
){
wsprintfW
(
buffer
,
stringFormat
,
choices
[
i
]);
ok
(
SendMessageW
(
hCombo
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
&
buffer
)
!=
CB_ERR
,
sprintf
(
buffer
,
stringFormat
,
choices
[
i
]);
result
=
SendMessageA
(
hCombo
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
buffer
);
ok
(
result
==
i
,
"Failed to add item %d
\n
"
,
i
);
}
cbInfo
.
cbSize
=
sizeof
(
COMBOBOXINFO
);
result
=
SendMessage
(
hCombo
,
CB_GETCOMBOBOXINFO
,
0
,
(
LPARAM
)
&
cbInfo
);
ok
(
result
,
"Failed to get combobox info structure. LastError=%d
\n
"
,
SetLastError
(
0xdeadbeef
);
ret
=
pGetComboBoxInfo
(
hCombo
,
&
cbInfo
);
ok
(
ret
,
"Failed to get combobox info structure. LastError=%d
\n
"
,
GetLastError
());
hEdit
=
cbInfo
.
hwndItem
;
hList
=
cbInfo
.
hwndList
;
...
...
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