user/test/msg.c: Add test for undocumented 0x4D message sent on F1

Vitaliy Margolen wine-patch at kievinfo.com
Wed Oct 19 19:06:28 CDT 2005


I'm not sure how to fix this. It looks like 0x4d message is coming from keyboard
and not DefWndProc. While WM_HELP does come from DefWndProc.

Vitaliy Margolen

changelog:
  user/test/msg.c:
  Add test for undocumented 0x4D message sent on F1
-------------- next part --------------
Index: msg.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/msg.c,v
retrieving revision 1.96
diff -u -p -r1.96 msg.c
--- msg.c	19 Oct 2005 19:06:35 -0000	1.96
+++ msg.c	20 Oct 2005 00:03:16 -0000
@@ -4328,6 +4328,16 @@ static const struct message WmAltMouseBu
     { WM_SYSKEYUP, sent|wparam|lparam, VK_MENU, 0xc0000001 },
     { 0 }
 };
+static const struct message WmF1Seq[] = {
+    { WM_KEYDOWN, wparam|lparam, VK_F1, 1 },
+    { WM_KEYDOWN, sent|wparam|lparam, VK_F1, 0x00000001 },
+    { 0x4d, wparam|lparam, 0, 0 },
+    { 0x4d, sent|wparam|lparam, 0, 0 },
+    { WM_HELP, sent|defwinproc },
+    { WM_KEYUP, wparam|lparam, VK_F1, 0xc0000001 },
+    { WM_KEYUP, sent|wparam|lparam, VK_F1, 0xc0000001 },
+    { 0 }
+};
 
 static void pump_msg_loop(HWND hwnd, HACCEL hAccel)
 {
@@ -4534,6 +4544,11 @@ static void test_accelerators(void)
     pump_msg_loop(hwnd, 0);
     ok_sequence(WmAltMouseButton, "Alt+MouseButton press/release", FALSE);
 
+    keybd_event(VK_F1, 0, 0, 0);
+    keybd_event(VK_F1, 0, KEYEVENTF_KEYUP, 0);
+    pump_msg_loop(hwnd, 0);
+    ok_sequence(WmF1Seq, "F1 press/release", TRUE);
+
     DestroyWindow(hwnd);
 }
 


More information about the wine-patches mailing list