Changeset 6001 for trunk/src


Ignore:
Timestamp:
Jun 13, 2001, 7:28:07 PM (24 years ago)
Author:
sandervl
Message:

wm_erasebkgnd handling changes for dialogs

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r5977 r6001  
    1 /* $Id: win32dlg.cpp,v 1.68 2001-06-12 18:25:11 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.69 2001-06-13 17:28:06 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    729729      int rc;
    730730
    731 //        if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
    732731        if (!windowClass) return 0;
    733732
     
    735734        if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION))
    736735        {
    737 #if 0
    738             HBRUSH hBrush = windowClass->getBackgroundBrush();
    739 
    740             if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1))
    741                 hBrush = GetSysColorBrush(hBrush-1);
    742 
    743             FillRect( (HDC)wParam, &rect, hbrush);
    744 #else
    745             //SvL: Ignore class background brush
    746             FillRect((HDC)wParam, &rect, GetSysColorBrush(COLOR_BTNFACE));
    747 #endif
     736            HBRUSH hBrush = SendInternalMessageA(WM_CTLCOLORDLG, wParam, getWindowHandle());
     737            if(GetObjectType(hBrush) != OBJ_BRUSH) {
     738                DefWndControlColor(CTLCOLOR_DLG, (HDC)wParam);
     739            }
     740            FillRect( (HDC)wParam, &rect, hBrush);
    748741        }
    749742
  • trunk/src/user32/win32wbase.cpp

    r5994 r6001  
    1 /* $Id: win32wbase.cpp,v 1.267 2001-06-13 12:19:09 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.268 2001-06-13 17:28:07 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    13431343        return GetSysColorBrush(COLOR_BTNFACE);
    13441344    }
    1345 
    13461345    if( ctlType == CTLCOLOR_SCROLLBAR)
    13471346    {
     
    16181617      RECT rect;
    16191618      int rc;
    1620 
    1621         if(getWindowHandle() == 0x68000044) {
    1622           rc = GetClipBox( (HDC)wParam, &rect );
    1623           FillRect( (HDC)wParam, &rect, GetSysColorBrush(COLOR_WINDOWTEXT));
    1624           return 1;
    1625         }
    16261619
    16271620        if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
Note: See TracChangeset for help on using the changeset viewer.