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
e28c2caa
Commit
e28c2caa
authored
Aug 19, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use client coordinates for right click test.
Fix the corresponding message sequences.
parent
49ba42d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
treeview.c
dlls/comctl32/tests/treeview.c
+15
-0
No files found.
dlls/comctl32/tests/treeview.c
View file @
e28c2caa
...
@@ -232,9 +232,13 @@ static const struct message test_right_click_seq[] = {
...
@@ -232,9 +232,13 @@ static const struct message test_right_click_seq[] = {
{
WM_RBUTTONDOWN
,
sent
|
wparam
,
MK_RBUTTON
},
{
WM_RBUTTONDOWN
,
sent
|
wparam
,
MK_RBUTTON
},
{
WM_CAPTURECHANGED
,
sent
|
defwinproc
},
{
WM_CAPTURECHANGED
,
sent
|
defwinproc
},
{
TVM_GETNEXTITEM
,
sent
|
wparam
|
lparam
|
defwinproc
,
TVGN_CARET
,
0
},
{
TVM_GETNEXTITEM
,
sent
|
wparam
|
lparam
|
defwinproc
,
TVGN_CARET
,
0
},
{
WM_PAINT
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
|
defwinproc
|
optional
},
{
WM_NCHITTEST
,
sent
|
optional
},
{
WM_NCHITTEST
,
sent
|
optional
},
{
WM_SETCURSOR
,
sent
|
optional
},
{
WM_SETCURSOR
,
sent
|
optional
},
{
WM_MOUSEMOVE
,
sent
|
optional
},
{
WM_MOUSEMOVE
,
sent
|
optional
},
{
WM_PAINT
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
|
defwinproc
|
optional
},
{
0
}
{
0
}
};
};
...
@@ -384,6 +388,16 @@ static const struct message parent_right_click_seq[] = {
...
@@ -384,6 +388,16 @@ static const struct message parent_right_click_seq[] = {
{
WM_CONTEXTMENU
,
sent
},
{
WM_CONTEXTMENU
,
sent
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_SETCURSOR
,
sent
|
optional
},
{
WM_SETCURSOR
,
sent
|
optional
},
{
WM_CTLCOLOREDIT
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_NOTIFY
,
sent
|
optional
},
{
WM_SETCURSOR
,
sent
|
optional
},
{
0
}
{
0
}
};
};
...
@@ -2942,6 +2956,7 @@ static void test_right_click(void)
...
@@ -2942,6 +2956,7 @@ static void test_right_click(void)
flush_events
();
flush_events
();
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
ScreenToClient
(
hTree
,
&
pt
);
PostMessageA
(
hTree
,
WM_RBUTTONDOWN
,
MK_RBUTTON
,
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
PostMessageA
(
hTree
,
WM_RBUTTONDOWN
,
MK_RBUTTON
,
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
PostMessageA
(
hTree
,
WM_RBUTTONUP
,
0
,
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
PostMessageA
(
hTree
,
WM_RBUTTONUP
,
0
,
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
...
...
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