On December 1, 2003 06:29 pm, Steven Edwards wrote:
The ReactOS and WINE regedits are a little out of sync. Can you incorporate this in to your next patch?
OK,
but the bulk of it is this:
+struct { + char *Name; + ULONG Id; +} Messages[] = +{ + {"WM_ACTIVATE", WM_ACTIVATE}, ... + {"WM_MOUSELEAVE", 0x2A3} +}; + /******************************************************************************* * * FUNCTION: ChildWndProc(HWND, unsigned, WORD, LONG) @@ -129,6 +321,25 @@ static int last_split; /* ChildWnd* pChildWnd = (ChildWnd*)GetWindowLong(hWnd, GWL_USERDATA); */ static ChildWnd* pChildWnd; + + { + int i; + char *name = NULL; + + for (i = sizeof(Messages) / sizeof(Messages[0]); i--; ) + if (message == Messages[i].Id) + { + name = Messages[i].Name; + break; + } + + if (name) + WINE_TRACE("Window: %x Message: %s (%x) wParam: %x lParam: %x\n", + hWnd, name, message, wParam, lParam); + else + WINE_TRACE("Window: %x Message: %x wParam: %x lParam: %x\n", + hWnd, message, wParam, lParam); + }
which I must say has no business being in here, for too many reasons to list here. This part has to go.