Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
578e872b
Commit
578e872b
authored
Aug 06, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Some tests to show edit item label problems.
parent
0adb4ef4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
treeview.c
dlls/comctl32/tests/treeview.c
+23
-0
No files found.
dlls/comctl32/tests/treeview.c
View file @
578e872b
...
...
@@ -858,6 +858,28 @@ static void test_expandinvisible(void)
DestroyWindow
(
hTree
);
}
static
void
test_itemedit
(
void
)
{
DWORD
r
;
HWND
edit
;
hTree
=
create_treeview_control
();
fill_tree
(
hTree
);
/* trigger edit */
edit
=
(
HWND
)
SendMessage
(
hTree
,
TVM_EDITLABEL
,
0
,
(
LPARAM
)
hRoot
);
ok
(
IsWindow
(
edit
),
"Expected valid handle
\n
"
);
/* item shouldn't be selected automatically after TVM_EDITLABEL */
r
=
SendMessage
(
hTree
,
TVM_GETITEMSTATE
,
(
WPARAM
)
hRoot
,
TVIS_SELECTED
);
todo_wine
expect
(
0
,
r
);
r
=
SendMessage
(
hTree
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
(
LPARAM
)
edit
);
expect
(
0
,
r
);
todo_wine
ok
(
!
IsWindow
(
edit
),
"Expected edit control to be destroyed
\n
"
);
DestroyWindow
(
hTree
);
}
START_TEST
(
treeview
)
{
HMODULE
hComctl32
;
...
...
@@ -905,6 +927,7 @@ START_TEST(treeview)
test_getset
();
test_callback
();
test_expandinvisible
();
test_itemedit
();
PostMessageA
(
hMainWnd
,
WM_CLOSE
,
0
,
0
);
while
(
GetMessageA
(
&
msg
,
0
,
0
,
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