Vincent Povirk : comctl32/tests: Accept touchscreen-related messages in button tests.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 25 10:11:19 CST 2015
Module: wine
Branch: master
Commit: 45e706a2a79beffe28eecd7ec01139a1c61431e2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=45e706a2a79beffe28eecd7ec01139a1c61431e2
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Tue Nov 24 15:32:59 2015 -0600
comctl32/tests: Accept touchscreen-related messages in button tests.
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/tests/button.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/comctl32/tests/button.c b/dlls/comctl32/tests/button.c
index 8c27c0f..9977ce1 100644
--- a/dlls/comctl32/tests/button.c
+++ b/dlls/comctl32/tests/button.c
@@ -205,6 +205,7 @@ static const struct message setfocus_seq[] =
{
{ WM_IME_SETCONTEXT, sent|wparam|optional, 1 },
{ WM_IME_NOTIFY, sent|wparam|defwinproc|optional, 2 },
+ { BM_GETSTATE, sent|optional }, /* when touchscreen is present */
{ WM_SETFOCUS, sent|wparam },
{ WM_COMMAND, sent|wparam|parent, MAKEWPARAM(ID_BUTTON, BN_SETFOCUS) },
{ WM_APP, sent|wparam|lparam },
@@ -227,6 +228,7 @@ static const struct message setfocus_static_seq[] =
{
{ WM_IME_SETCONTEXT, sent|wparam|optional, 1 },
{ WM_IME_NOTIFY, sent|wparam|defwinproc|optional, 2 },
+ { BM_GETSTATE, sent|optional }, /* when touchscreen is present */
{ WM_SETFOCUS, sent|wparam, 0 },
{ WM_COMMAND, sent|wparam|parent, MAKEWPARAM(ID_BUTTON, BN_SETFOCUS) },
{ WM_COMMAND, sent|wparam|parent|optional, MAKEWPARAM(ID_BUTTON, BN_CLICKED) }, /* radio button */
@@ -239,6 +241,7 @@ static const struct message setfocus_groupbox_seq[] =
{
{ WM_IME_SETCONTEXT, sent|wparam|optional, 1 },
{ WM_IME_NOTIFY, sent|wparam|defwinproc|optional, 2 },
+ { BM_GETSTATE, sent|optional }, /* when touchscreen is present */
{ WM_SETFOCUS, sent|wparam, 0 },
{ WM_COMMAND, sent|wparam|parent, MAKEWPARAM(ID_BUTTON, BN_SETFOCUS) },
{ WM_COMMAND, sent|wparam|parent|optional, MAKEWPARAM(ID_BUTTON, BN_CLICKED) }, /* radio button */
@@ -262,6 +265,7 @@ static const struct message setfocus_ownerdraw_seq[] =
{
{ WM_IME_SETCONTEXT, sent|wparam|optional, 1 },
{ WM_IME_NOTIFY, sent|wparam|defwinproc|optional, 2 },
+ { BM_GETSTATE, sent|optional }, /* when touchscreen is present */
{ WM_SETFOCUS, sent|wparam, 0 },
{ WM_DRAWITEM, sent|wparam|parent, ID_BUTTON },
{ WM_COMMAND, sent|wparam|parent, MAKEWPARAM(ID_BUTTON, BN_SETFOCUS) },
@@ -287,6 +291,7 @@ static const struct message lbuttondown_seq[] =
{ WM_LBUTTONDOWN, sent|wparam|lparam, 0, 0 },
{ WM_IME_SETCONTEXT, sent|wparam|defwinproc|optional, 1 },
{ WM_IME_NOTIFY, sent|wparam|defwinproc|optional, 2 },
+ { BM_GETSTATE, sent|defwinproc|optional }, /* when touchscreen is present */
{ WM_SETFOCUS, sent|wparam|defwinproc, 0 },
{ BM_SETSTATE, sent|wparam|defwinproc, TRUE },
{ 0 }
More information about the wine-cvs
mailing list