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

wm_erasebkgnd handling changes for dialogs

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.