Ignore:
Timestamp:
Jan 14, 2000, 2:16:59 PM (26 years ago)
Author:
sandervl
Message:

Several window position bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/pmframe.cpp

    r2433 r2435  
    1 /* $Id: pmframe.cpp,v 1.16 2000-01-13 20:11:37 sandervl Exp $ */
     1/* $Id: pmframe.cpp,v 1.17 2000-01-14 13:16:57 sandervl Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    287287
    288288          //CB: todo: use result for WM_CALCVALIDRECTS
    289 //          mapWin32ToOS2Rect(WinQueryWindow(hwnd,QW_PARENT),hwnd,win32wnd->getClientRectPtr(),(PRECTLOS2)&rect);
    290289          mapWin32ToOS2Rect(win32wnd->getOS2FrameWindowHandle(), win32wnd->getClientRectPtr(), (PRECTLOS2)&rect);
    291290
     
    378377    }
    379378
     379    case WM_ERASEBACKGROUND:
     380        break;
     381
    380382    case WM_CALCVALIDRECTS:
    381383    {
     
    447449VOID FrameUpdateClient(Win32BaseWindow *win32wnd)
    448450{
     451  RECT rectOld, rectNew;
    449452  RECTL rect;
    450453  SWP swpClient = {0};
    451454
     455        rectOld = *win32wnd->getClientRectPtr();
    452456        win32wnd->MsgFormatFrame(NULL);
     457        rectNew = *win32wnd->getClientRectPtr();
     458        if(WinEqualRect(0, (PRECTL)&rectOld, (PRECTL)&rectNew) == 1) {
     459                WinInvalidateRect(win32wnd->getOS2FrameWindowHandle(), NULL, FALSE);
     460                return;
     461        }
    453462        //CB: todo: use result for WM_CALCVALIDRECTS
    454 //        mapWin32ToOS2Rect(WinQueryWindow(win32wnd->getOS2FrameWindowHandle(),QW_PARENT),win32wnd->getOS2FrameWindowHandle(),win32wnd->getClientRectPtr(),(PRECTLOS2)&rect);
    455463        mapWin32ToOS2Rect(win32wnd->getOS2FrameWindowHandle(), win32wnd->getClientRectPtr(), (PRECTLOS2)&rect);
    456464
Note: See TracChangeset for help on using the changeset viewer.