Ignore:
Timestamp:
Feb 5, 2000, 5:25:00 PM (26 years ago)
Author:
sandervl
Message:

WM_ERASEBKGND changes

File:
1 edited

Legend:

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

    r2657 r2663  
    1 /* $Id: win32wbase.cpp,v 1.152 2000-02-05 14:08:53 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.153 2000-02-05 16:24:59 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    145145  ownDC              = 0;
    146146  hWindowRegion      = 0;
     147  hUpdateRegion      = CreateRectRgn(0, 0, 0, 0);
    147148
    148149  if(currentProcessId == -1)
     
    178179    }
    179180
    180     if (isOwnDC())
    181         releaseOwnDC (ownDC);
     181    if(hUpdateRegion) {
     182        DeleteObject(hUpdateRegion);
     183        hUpdateRegion = 0;
     184    }
     185
     186    if(isOwnDC())
     187        releaseOwnDC(ownDC);
    182188
    183189    if(Win32Hwnd)
     
    186192    if(userWindowLong)
    187193        free(userWindowLong);
     194
    188195    if(windowNameA) {
    189196        free(windowNameA);
     
    14331440        if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
    14341441
    1435         rc = GetClipBox( (HDC)wParam, &rect );
     1442//        rc = GetClipBox( (HDC)wParam, &rect );
     1443        rc = GetRgnBox(hUpdateRegion, &rect);
    14361444        if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION))
    14371445        {
    1438           HBRUSH hBrush = windowClass->getBackgroundBrush();
    1439 
    1440           if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) hBrush = GetSysColorBrush(hBrush-1);
    1441 
    1442           FillRect( (HDC)wParam, &rect, hBrush);
     1446            HBRUSH hBrush = windowClass->getBackgroundBrush();
     1447
     1448            if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1))
     1449                hBrush = GetSysColorBrush(hBrush-1);
     1450
     1451//          FillRect( (HDC)wParam, &rect, hBrush);
     1452                FillRgn((HDC)wParam, hUpdateRegion, hBrush);
    14431453        }
    14441454
     
    27242734                    return value;
    27252735
    2726                         value &= ~(WS_VISIBLE | WS_CHILD);      /* Some bits can't be changed this way (WINE) */
     2736                value &= ~(WS_VISIBLE | WS_CHILD);      /* Some bits can't be changed this way (WINE) */
    27272737                ss.styleOld = getStyle();
    2728                         ss.styleNew = value | (ss.styleOld & (WS_VISIBLE | WS_CHILD));
     2738                ss.styleNew = value | (ss.styleOld & (WS_VISIBLE | WS_CHILD));
    27292739                dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x", getWindowHandle(), ss.styleOld, ss.styleNew));
    27302740                SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss);
    27312741                setStyle(ss.styleNew);
    27322742                SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss);
    2733                 OSLibSetWindowStyle(getOS2FrameWindowHandle(), getStyle(), getExStyle(),
    2734                                     windowClass->getStyle() & CS_SAVEBITS);
     2743////                OSLibSetWindowStyle(getOS2FrameWindowHandle(), getStyle(), getExStyle(),
     2744////                                    windowClass->getStyle() & CS_SAVEBITS);
    27352745#ifdef DEBUG
    27362746                PrintWindowStyle(ss.styleNew, 0);
Note: See TracChangeset for help on using the changeset viewer.