Hi,
Debugging USER control gets easier by dumping window info on special keys...
This patch dumps the current window and its parents on pressing the "Print"
key.
I am not sure whether this is useful in the real WINE.
Ciao, Marcus
Index: input.c
===================================================================
RCS file: /home/wine/wine/windows/input.c,v
retrieving revision 1.37
diff -u -r1.37 input.c
--- input.c 2000/10/26 21:47:21 1.37
+++ input.c 2000/11/01 13:47:35
@@ -133,8 +133,26 @@
? WM_SYSKEYDOWN : WM_KEYDOWN;
}
+
+ if ((bVk == VK_SNAPSHOT) && (!(dwFlags & KEYEVENTF_KEYUP))) {
+ POINT pt;
+ HWND hwnd;
+
+ GetCursorPos(&pt);
+
+ hwnd = WindowFromPoint(pt);
+ MESSAGE("snapshot at %d.%d, hwnd %x\n",pt.x,pt.y,hwnd);
+ while (hwnd && hwnd != GetDesktopWindow()) {
+ WIN_DumpWindow(hwnd);
+ if (!(GetWindowLongA( hwnd, GWL_STYLE) & WS_CHILD))
+ break;
+ hwnd = GetWindowLongA(hwnd,GWL_HWNDPARENT);
+ }
+ }
+
if ( message == WM_SYSKEYDOWN || message == WM_SYSKEYUP )
keylp.lp1.context = (InputKeyStateTable[VK_MENU] & 0x80) != 0; /* 1 if alt */
+
TRACE_(key)(" wParam=%04X, lParam=%08lX\n", bVk, keylp.lp2 );