MSG #4: Add a procedure for logging WM_PARENTNOTIFY messages
Dmitry Timoshkov
dmitry at baikal.ru
Thu Mar 25 07:53:30 CST 2004
Hello,
currently we do not log parent window messages, this causes test
mismatches for WM_PARENTNOTIFY.
Please apply after MSG #3.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
MSG #4: Add a procedure for logging WM_PARENTNOTIFY messages.
--- cvs/hq/wine/dlls/user/tests/msg.c 2004-03-25 19:27:58.000000000 +0800
+++ wine/dlls/user/tests/msg.c 2004-03-25 21:37:36.000000000 +0800
@@ -532,6 +532,24 @@ static LRESULT WINAPI MsgCheckProcA(HWND
return DefWindowProcA(hwnd, message, wParam, lParam);
}
+static LRESULT WINAPI ParentMsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+ struct message msg;
+
+ trace("%p, %04x, %08x, %08lx\n", hwnd, message, wParam, lParam);
+
+ if (message == WM_PARENTNOTIFY)
+ {
+ msg.message = message;
+ msg.flags = sent|parent|wparam|lparam;
+ msg.wParam = wParam;
+ msg.lParam = lParam;
+ add_message(&msg);
+ }
+
+ return DefWindowProcA(hwnd, message, wParam, lParam);
+}
+
static BOOL RegisterWindowClasses(void)
{
WNDCLASSA cls;
@@ -550,7 +568,7 @@ static BOOL RegisterWindowClasses(void)
if(!RegisterClassA(&cls)) return FALSE;
cls.style = 0;
- cls.lpfnWndProc = DefWindowProcA;
+ cls.lpfnWndProc = ParentMsgCheckProcA;
cls.cbClsExtra = 0;
cls.cbWndExtra = 0;
cls.hInstance = GetModuleHandleA(0);
More information about the wine-patches
mailing list