Ignore:
Timestamp:
Nov 12, 2003, 3:13:26 PM (22 years ago)
Author:
sandervl
Message:

Visible & Clip region changes

File:
1 edited

Legend:

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

    r10275 r10316  
    1 /* $Id: win32wbase.cpp,v 1.379 2003-10-20 17:17:23 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.380 2003-11-12 14:10:20 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    117117  fComingToTop     = FALSE;
    118118  fMinMaxChange    = FALSE;
    119   fVisibleRegionChanged = FALSE;
     119  fPMUpdateRegionChanged = FALSE;
    120120  fEraseBkgndFlag  = TRUE;
    121121  fIsDragDropActive= FALSE;
     
    178178  hWindowRegion      = 0;
    179179  hClipRegion        = 0;
     180  hVisRegion         = 0;
    180181  hUpdateRegion      = 0;
    181182
     
    12191220    HDC   hdcErase = hdc;
    12201221
    1221     if (hdcErase == 0)
    1222         hdcErase = GetDC(getWindowHandle());
     1222    if (hdcErase == 0) {
     1223        DebugInt3();
     1224        return 0;
     1225    }
    12231226
    12241227    if(IsWindowIconic())
     
    12261229    else
    12271230        rc = SendMessageA(getWindowHandle(),WM_ERASEBKGND, hdcErase, 0);
    1228     if (hdc == 0)
    1229         ReleaseDC(getWindowHandle(), hdcErase);
     1231
    12301232    return (rc);
    12311233}
     
    12501252}
    12511253//******************************************************************************
    1252 //TODO: Should use update region, not rectangle
    1253 //******************************************************************************
    1254 ULONG Win32BaseWindow::MsgNCPaint(PRECT pUpdateRect)
    1255 {
    1256     HRGN hrgn;
     1254//******************************************************************************
     1255ULONG Win32BaseWindow::MsgNCPaint(PRECT pUpdateRect, HRGN hrgnUpdate)
     1256{
    12571257    ULONG rc;
    12581258    RECT client = rectClient;
     
    12671267    }
    12681268
    1269     dprintf(("MsgNCPaint (%d,%d)(%d,%d)", pUpdateRect->left, pUpdateRect->top, pUpdateRect->right, pUpdateRect->bottom));
    1270     hrgn = CreateRectRgnIndirect(pUpdateRect);
    1271 
    1272     rc = SendMessageA(getWindowHandle(),WM_NCPAINT, hrgn, 0);
     1269    rc = SendMessageA(getWindowHandle(),WM_NCPAINT, hrgnUpdate, 0);
    12731270    //Send WM_PAINTICON here if minimized, because client window will
    12741271    //not receive a (valid) WM_PAINT message
     
    12771274        rc = SendMessageA(getWindowHandle(),WM_PAINTICON, 1, 0);
    12781275    }
    1279 
    1280     DeleteObject(hrgn);
    12811276
    12821277    return rc;
     
    29192914}
    29202915//******************************************************************************
    2921 //Note: does not set last error if no parent (verified in NT4, SP6)
     2916// Win32BaseWindow::GetParent
     2917//
     2918// If the window is a child window, then return the parent window handle.
     2919// If it's a popup window, then return the owner
     2920//
     2921// Returns window handle of parent or owner window
     2922//
     2923// Note: does not set last error if no parent (verified in NT4, SP6)
    29222924//******************************************************************************
    29232925HWND Win32BaseWindow::GetParent()
Note: See TracChangeset for help on using the changeset viewer.