Changeset 3789 for trunk/src


Ignore:
Timestamp:
Jul 2, 2000, 4:31:34 PM (25 years ago)
Author:
sandervl
Message:

fixed moving of child windows + move child windows when client rectangle changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r3783 r3789  
    1 /* $Id: win32wbase.cpp,v 1.204 2000-07-01 09:51:53 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.205 2000-07-02 14:31:34 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    11151115//this doesn't always work
    11161116//  if(!fNoSizeMsg && (client.left != rectClient.left || client.top != rectClient.top))
    1117   if(!fNoSizeMsg && (oldWindowRect.right - oldWindowRect.left < rectClient.left
    1118                   || oldWindowRect.bottom - oldWindowRect.top < rectClient.top))
     1117  if(!fNoSizeMsg && ((oldWindowRect.right - oldWindowRect.left < rectClient.left
     1118                  || oldWindowRect.bottom - oldWindowRect.top < rectClient.top) ||
     1119     (EqualRect(&oldWindowRect, &rectWindow) && (client.left != rectClient.left || client.top != rectClient.top))))
    11191120  {
    11201121   Win32BaseWindow *child = (Win32BaseWindow *)getFirstChild();
     
    11231124        dprintf(("MsgFormatFrame -> client rectangle has changed, move children"));
    11241125        while(child) {
    1125                 child->SetWindowPos(HWND_TOP, child->getClientRectPtr()->left,
    1126                                     child->getClientRectPtr()->top, 0, 0,
    1127                                     SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOZORDER);
     1126                ::SetWindowPos(child->getWindowHandle(),
     1127                               HWND_TOP, child->getWindowRect()->left,
     1128                               child->getWindowRect()->top, 0, 0,
     1129                               SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOZORDER);
    11281130                child = (Win32BaseWindow *)child->getNextChild();
    11291131        }
     
    22712273                OffsetRect(&oldClientRect, -rectClient.left, -rectClient.top);
    22722274                InvalidateRect(getWindowHandle(), &oldClientRect, TRUE);
    2273 //TODO: move child windows!!
    22742275        }
    22752276        return TRUE;
     
    23172318        OffsetRect(&oldClientRect, -rectClient.left, -rectClient.top);
    23182319        InvalidateRect(getWindowHandle(), &oldClientRect, TRUE);
    2319 //TODO: move child windows!!
    23202320    }
    23212321    return (rc);
Note: See TracChangeset for help on using the changeset viewer.