Ignore:
Timestamp:
Mar 22, 2003, 9:27:12 PM (22 years ago)
Author:
sandervl
Message:

Changes for applications that don't validate the update region of a window during WM_PAINT

File:
1 edited

Legend:

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

    r9930 r9933  
    1 /* $Id: pmwindow.cpp,v 1.202 2003-03-20 13:20:44 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.203 2003-03-22 20:27:11 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    866866      BOOL  rc;
    867867
     868        win32wnd->checkForDirtyUpdateRegion();
     869
    868870        rc = WinQueryUpdateRect(hwnd, &rectl);
    869871        dprintf(("OS2: WM_PAINT %x (%d,%d) (%d,%d) rc=%d", win32wnd->getWindowHandle(), rectl.xLeft, rectl.yBottom, rectl.xRight, rectl.yTop, rc));
     
    873875        {
    874876                win32wnd->DispatchMsgA(pWinMsg);
     877                if(WinQueryUpdateRect(hwnd, NULL) == TRUE)
     878                {//the application didn't validate the update region; Windows
     879                 //will only send a WM_PAINT once until another part of the
     880                 //window is invalidated. Unfortunately PM keeps on sending
     881                 //WM_PAINT messages until we validate the update region.
     882
     883                    win32wnd->saveAndValidateUpdateRegion();
     884                }
    875885        }
    876886        else    goto RunDefWndProc;
Note: See TracChangeset for help on using the changeset viewer.