Ignore:
Timestamp:
Nov 26, 1999, 6:06:09 PM (26 years ago)
Author:
cbratschi
Message:

map rect, WM_ERASEBKGND and other fixes

File:
1 edited

Legend:

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

    r1845 r1849  
    1 /* $Id: win32wbase.cpp,v 1.96 1999-11-26 00:05:49 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.97 1999-11-26 17:06:09 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    16481648        rc = GetClipBox( (HDC)wParam, &rect );
    16491649        if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION))
    1650             FillRect( (HDC)wParam, &rect, windowClass->getBackgroundBrush());
     1650        {
     1651          HBRUSH hBrush = windowClass->getBackgroundBrush();
     1652
     1653          if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) hBrush = GetSysColorBrush(hBrush-1);
     1654
     1655          FillRect( (HDC)wParam, &rect, hBrush);
     1656        }
    16511657
    16521658        return 1;
Note: See TracChangeset for help on using the changeset viewer.