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
3f000202
Commit
3f000202
authored
Dec 06, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Dec 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use more than one item for the custom draw tests.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
462d348e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
treeview.c
dlls/comctl32/tests/treeview.c
+4
-10
No files found.
dlls/comctl32/tests/treeview.c
View file @
3f000202
...
...
@@ -328,6 +328,8 @@ static const struct message parent_cd_seq[] = {
{
WM_NOTIFY
,
sent
|
id
|
custdraw
,
0
,
0
,
NM_CUSTOMDRAW
,
CDDS_PREPAINT
},
{
WM_NOTIFY
,
sent
|
id
|
custdraw
,
0
,
0
,
NM_CUSTOMDRAW
,
CDDS_ITEMPREPAINT
},
{
WM_NOTIFY
,
sent
|
id
|
custdraw
,
0
,
0
,
NM_CUSTOMDRAW
,
CDDS_ITEMPOSTPAINT
},
{
WM_NOTIFY
,
sent
|
id
|
custdraw
,
0
,
0
,
NM_CUSTOMDRAW
,
CDDS_ITEMPREPAINT
},
{
WM_NOTIFY
,
sent
|
id
|
custdraw
,
0
,
0
,
NM_CUSTOMDRAW
,
CDDS_ITEMPOSTPAINT
},
{
WM_NOTIFY
,
sent
|
id
|
custdraw
,
0
,
0
,
NM_CUSTOMDRAW
,
CDDS_POSTPAINT
},
{
0
}
};
...
...
@@ -2317,20 +2319,12 @@ static void test_WM_GETDLGCODE(void)
static
void
test_customdraw
(
void
)
{
static
const
char
*
rootA
=
"root"
;
TVINSERTSTRUCTA
ins
;
HTREEITEM
hRoot
;
LOGFONTA
lf
;
HWND
hwnd
;
hwnd
=
create_treeview_control
(
0
);
ins
.
hParent
=
TVI_ROOT
;
ins
.
hInsertAfter
=
TVI_ROOT
;
U
(
ins
).
item
.
mask
=
TVIF_TEXT
;
U
(
ins
).
item
.
pszText
=
(
char
*
)
rootA
;
hRoot
=
TreeView_InsertItemA
(
hwnd
,
&
ins
);
ok
(
hRoot
!=
NULL
,
"got %p
\n
"
,
hRoot
);
fill_tree
(
hwnd
);
SendMessageA
(
hwnd
,
TVM_EXPAND
,
TVE_EXPAND
,
(
WPARAM
)
hRoot
);
/* create additional font, custom draw handler will select it */
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
sizeof
(
lf
),
&
lf
,
0
);
...
...
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