Author: jimtabor
Date: Thu Apr 10 23:32:34 2014
New Revision: 62702

URL: http://svn.reactos.org/svn/reactos?rev=62702&view=rev
Log:
[Win32k]
- Add write back for HCBT_MOVESIZE.

Modified:
    trunk/reactos/win32ss/user/ntuser/callback.c

Modified: trunk/reactos/win32ss/user/ntuser/callback.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/callback.c?rev=62702&r1=62701&r2=62702&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/callback.c        [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/callback.c        [iso-8859-1] Thu Apr 10 
23:32:34 2014
@@ -736,21 +736,30 @@
    switch (HookId)
    {
       case WH_CBT:
-         if (Code == HCBT_CREATEWND)
+      {
+         switch (Code)
          {
-            if (CbtCreatewndExtra)
-            {/*
-               The parameters could have been changed, include the coordinates
-               and dimensions of the window. We copy it back.
-              */
-               CbtCreateWnd->hwndInsertAfter = 
CbtCreatewndExtra->WndInsertAfter;
-               CbtCreateWnd->lpcs->x  = CbtCreatewndExtra->Cs.x;
-               CbtCreateWnd->lpcs->y  = CbtCreatewndExtra->Cs.y;
-               CbtCreateWnd->lpcs->cx = CbtCreatewndExtra->Cs.cx;
-               CbtCreateWnd->lpcs->cy = CbtCreatewndExtra->Cs.cy;
-            }
+            case HCBT_CREATEWND:
+               if (CbtCreatewndExtra)
+               {/*
+                  The parameters could have been changed, include the 
coordinates
+                  and dimensions of the window. We copy it back.
+                 */
+                  CbtCreateWnd->hwndInsertAfter = 
CbtCreatewndExtra->WndInsertAfter;
+                  CbtCreateWnd->lpcs->x  = CbtCreatewndExtra->Cs.x;
+                  CbtCreateWnd->lpcs->y  = CbtCreatewndExtra->Cs.y;
+                  CbtCreateWnd->lpcs->cx = CbtCreatewndExtra->Cs.cx;
+                  CbtCreateWnd->lpcs->cy = CbtCreatewndExtra->Cs.cy;
+               }
+            break;
+            case HCBT_MOVESIZE:
+               if (Common->lParam && lParam)
+               {
+                  RtlCopyMemory((PVOID) lParam, (PVOID) Common->lParam, 
sizeof(RECTL));
+               }
+            break;
          }
-         break;
+      }
       // "The GetMsgProc hook procedure can examine or modify the message."
       case WH_GETMESSAGE:
          if (pMsg)


Reply via email to