Ignore:
Timestamp:
Oct 6, 2000, 5:15:00 PM (25 years ago)
Author:
sandervl
Message:

OemToCharBuffA + DefDlgProc/WM_ERASEBKGND fixes

File:
1 edited

Legend:

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

    r4434 r4444  
    1 /* $Id: win32dlg.cpp,v 1.52 2000-10-05 18:37:26 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.53 2000-10-06 15:15:00 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    718718      int rc;
    719719
    720         if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
     720//        if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
     721        if (!windowClass) return 0;
    721722
    722723        rc = GetClipBox( (HDC)wParam, &rect );
    723724        if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION))
    724725        {
     726#if 0
    725727            HBRUSH hBrush = windowClass->getBackgroundBrush();
    726728
     
    728730                hBrush = GetSysColorBrush(hBrush-1);
    729731
    730             FillRect( (HDC)wParam, &rect, hBrush);
     732            FillRect( (HDC)wParam, &rect, hbrush);
     733#else
     734            //SvL: Ignore class background brush
     735            FillRect((HDC)wParam, &rect, GetSysColorBrush(COLOR_BTNFACE));
     736#endif
    731737        }
    732738
Note: See TracChangeset for help on using the changeset viewer.