Author: jimtabor
Date: Wed Jul 23 16:18:48 2008
New Revision: 34698
URL:
http://svn.reactos.org/svn/reactos?rev=34698&view=rev
Log:
- Fix show window call and add message calls for future hook support.
Modified:
trunk/reactos/dll/win32/user32/windows/defwnd.c
Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] Wed Jul 23 16:18:48 2008
@@ -666,6 +666,13 @@
DeleteObject(DesktopRgn);
}
}
+#if 0
+ if (ISITHOOKED(WH_CBT))
+ {
+ if (NtUserMessageCall( hWnd, WM_SYSCOMMAND, wParam, (LPARAM)&sizingRect, 0,
FNID_DEFWINDOWPROC, FALSE))
+ moved = FALSE;
+ }
+#endif
(void)NtUserSetGUIThreadHandle(MSQ_STATE_MOVESIZE, NULL);
SendMessageA( hwnd, WM_EXITSIZEMOVE, 0, 0 );
SendMessageA( hwnd, WM_SETVISIBLE, !IsIconic(hwnd), 0L);
@@ -745,6 +752,13 @@
WINDOWPLACEMENT wp;
POINT Pt;
+#if 0
+ if (ISITHOOKED(WH_CBT))
+ {
+ if (NtUserMessageCall( hWnd, WM_SYSCOMMAND, wParam, lParam, 0, FNID_DEFWINDOWPROC,
FALSE))
+ return 0;
+ }
+#endif
switch (wParam & 0xfff0)
{
case SC_MOVE:
@@ -1410,7 +1424,8 @@
case WM_SHOWWINDOW:
{
- NtUserMessageCall( hWnd, Msg, wParam, lParam, 0, FNID_DEFWINDOWPROC, FALSE);
+ if (lParam) // Call when it is necessary.
+ NtUserMessageCall( hWnd, Msg, wParam, lParam, 0, FNID_DEFWINDOWPROC,
FALSE);
break;
}