[ros-diffs] [weiden] 27640: Adjust the owner edit field on page resizes

weiden at svn.reactos.org weiden at svn.reactos.org
Sat Jul 14 00:56:33 CEST 2007


Author: weiden
Date: Sat Jul 14 02:56:32 2007
New Revision: 27640

URL: http://svn.reactos.org/svn/reactos?rev=27640&view=rev
Log:
Adjust the owner edit field on page resizes

Modified:
    trunk/reactos/dll/win32/aclui/aclui.c

Modified: trunk/reactos/dll/win32/aclui/aclui.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/aclui/aclui.c?rev=27640&r1=27639&r2=27640&view=diff
==============================================================================
--- trunk/reactos/dll/win32/aclui/aclui.c (original)
+++ trunk/reactos/dll/win32/aclui/aclui.c Sat Jul 14 02:56:32 2007
@@ -896,12 +896,12 @@
                IN INT Width,
                IN INT Height)
 {
-    HWND hWndAllow, hWndDeny;
+    HWND hWndAllow, hWndDeny, hWndOwnerEdit;
     RECT rcControl, rcControl2, rcControl3, rcWnd;
     INT cxWidth, cxEdge, btnSpacing;
     POINT pt, pt2;
     HDWP dwp;
-    INT nControls = 7;
+    INT nControls = 8;
     LVCOLUMN lvc;
     
     hWndAllow = GetDlgItem(sp->hWnd,
@@ -931,6 +931,29 @@
     
     if ((dwp = BeginDeferWindowPos(nControls)))
     {
+        /* resize the owner edit field */
+        hWndOwnerEdit = GetDlgItem(sp->hWnd,
+                                   IDC_OWNER);
+        GetWindowRect(hWndOwnerEdit,
+                      &rcControl);
+        pt2.x = 0;
+        pt2.y = 0;
+        MapWindowPoints(hWndOwnerEdit,
+                        sp->hWnd,
+                        &pt2,
+                        1);
+        if (!(dwp = DeferWindowPos(dwp,
+                                   hWndOwnerEdit,
+                                   NULL,
+                                   0,
+                                   0,
+                                   Width - pt.x - pt2.x,
+                                   rcControl.bottom - rcControl.top,
+                                   SWP_NOMOVE | SWP_NOZORDER)))
+        {
+            goto EndDeferWnds;
+        }
+
         /* resize the Principal list view */
         GetWindowRect(sp->hWndPrincipalsList,
                       &rcControl);




More information about the Ros-diffs mailing list