Ignore:
Timestamp:
Oct 9, 1999, 5:36:58 PM (26 years ago)
Author:
sandervl
Message:

Resize bugfix

File:
1 edited

Legend:

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

    r1210 r1227  
    1 /* $Id: pmwindow.cpp,v 1.23 1999-10-09 11:03:23 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.24 1999-10-09 15:36:58 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    298298        classStyle = win32wnd->getClass()->getStyle();
    299299
    300 #if 0
    301         if ((yDelta != 0) && ((classStyle & CS_VREDRAW_W) ||
    302            ((classStyle & CS_HREDRAW_W) && (pswp->cx != pswpo->cx))))
    303 #else
    304300        if (yDelta != 0 || xDelta != 0)
    305 #endif
    306301        {
    307302            HENUM henum = WinBeginEnumWindows(pswp->hwnd);
     
    326321#endif
    327322
    328                 swp[i].y += yDelta;
    329 
    330                 if (i == 9)
     323                if(swp[i].y != 0) {
     324                    //child window at offset <> 0 from client area -> offset now changes
     325                    swp[i].y  += yDelta;
     326                    swp[i].fl &= ~SWP_NOREDRAW;
     327                }
     328                //else child window with the same start coorindates as the client area
     329                //The app should resize it.
     330
     331               if (i == 9)
    331332                {
    332333                    WinSetMultWindowPos(GetThreadHAB(), swp, 10);
     
    355356        win32wnd->MsgPosChanged((LPARAM)&wp);
    356357
    357         goto RunDefWndProc;
     358    goto RunDefWndProc;
    358359//        break;
    359360    }
Note: See TracChangeset for help on using the changeset viewer.