Add tracing messages to MDI

Duane Clark dclark at akamail.com
Sat Apr 24 20:01:08 CDT 2004


Changelog:
	Add tracing messages to MDI.

-------------- next part --------------
Index: windows/mdi.c
===================================================================
RCS file: /home/wine/wine/windows/mdi.c,v
retrieving revision 1.125
diff -u -r1.125 mdi.c
--- windows/mdi.c	1 Apr 2004 04:57:12 -0000	1.125
+++ windows/mdi.c	25 Apr 2004 00:59:32 -0000
@@ -95,6 +95,7 @@
 #include "win.h"
 #include "nonclient.h"
 #include "controls.h"
+#include "message.h"
 #include "user.h"
 #include "struct32.h"
 #include "wine/debug.h"
@@ -1013,7 +1014,7 @@
 {
     MDICLIENTINFO *ci;
 
-    TRACE("%p %04x %08x %08lx\n", hwnd, message, wParam, lParam);
+    TRACE("%p %04x (%s) %08x %08lx\n", hwnd, message, SPY_GetMsgName(message, hwnd), wParam, lParam);
 
     if (!(ci = get_client_info( hwnd ))) return 0;
 
@@ -1293,7 +1294,7 @@
 {
     MDICLIENTINFO *ci = get_client_info( hwndMDIClient );
 
-    TRACE("%p %p %04x %08x %08lx\n", hwnd, hwndMDIClient, message, wParam, lParam);
+    TRACE("%p %p %04x (%s) %08x %08lx\n", hwnd, hwndMDIClient, message, SPY_GetMsgName(message, hwnd), wParam, lParam);
 
     if (ci)
     {
@@ -1390,7 +1391,7 @@
     HWND client = GetParent(hwnd);
     MDICLIENTINFO *ci = get_client_info( client );
 
-    TRACE("%p %04x %08x %08lx\n", hwnd, message, wParam, lParam);
+    TRACE("%p %04x (%s) %08x %08lx\n", hwnd, message, SPY_GetMsgName(message, hwnd), wParam, lParam);
 
     hwnd = WIN_GetFullHandle( hwnd );
     if (!ci) return DefWindowProcA( hwnd, message, wParam, lParam );
@@ -1428,7 +1429,7 @@
     HWND client = GetParent(hwnd);
     MDICLIENTINFO *ci = get_client_info( client );
 
-    TRACE("%p %04x %08x %08lx\n", hwnd, message, wParam, lParam);
+    TRACE("%p %04x (%s) %08x %08lx\n", hwnd, message, SPY_GetMsgName(message, hwnd), wParam, lParam);
 
     hwnd = WIN_GetFullHandle( hwnd );
     if (!ci) return DefWindowProcW( hwnd, message, wParam, lParam );


More information about the wine-patches mailing list