Commit e28c2caa authored by Alexandre Julliard's avatar Alexandre Julliard

comctl32/tests: Use client coordinates for right click test.

Fix the corresponding message sequences.
parent 49ba42d8
......@@ -232,9 +232,13 @@ static const struct message test_right_click_seq[] = {
{ WM_RBUTTONDOWN, sent|wparam, MK_RBUTTON },
{ WM_CAPTURECHANGED, sent|defwinproc },
{ TVM_GETNEXTITEM, sent|wparam|lparam|defwinproc, TVGN_CARET, 0 },
{ WM_PAINT, sent|optional },
{ WM_ERASEBKGND, sent|defwinproc|optional },
{ WM_NCHITTEST, sent|optional },
{ WM_SETCURSOR, sent|optional },
{ WM_MOUSEMOVE, sent|optional },
{ WM_PAINT, sent|optional },
{ WM_ERASEBKGND, sent|defwinproc|optional },
{ 0 }
};
......@@ -384,6 +388,16 @@ static const struct message parent_right_click_seq[] = {
{ WM_CONTEXTMENU, sent },
{ WM_NOTIFY, 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 }
};
......@@ -2942,6 +2956,7 @@ static void test_right_click(void)
flush_events();
flush_sequences(sequences, NUM_MSG_SEQUENCES);
ScreenToClient(hTree, &pt);
PostMessageA(hTree, WM_RBUTTONDOWN, MK_RBUTTON, MAKELPARAM(pt.x, pt.y));
PostMessageA(hTree, WM_RBUTTONUP, 0, MAKELPARAM(pt.x, pt.y));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment