Changeset 20581


Ignore:
Timestamp:
Apr 28, 2003, 10:41:08 AM (22 years ago)
Author:
sandervl
Message:

PF: Correctly finish PM restore procedure from minimized state; Use Stock brush for minimized icon fill when it is not allocated

Location:
tags/trunk/src/user32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/user32/pmwindow.cpp

    r20575 r20581  
    1 /* $Id: pmwindow.cpp,v 1.211 2003-04-25 11:13:16 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.212 2003-04-28 08:41:07 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    16801680        }
    16811681#endif
     1682        //PF This is the final step of PM restoration - should end up
     1683        //in default handler.
     1684        if (win32wnd->getOldStyle() & WS_MINIMIZE_W && pswp->fl & SWP_RESTORE)
     1685              goto RunDefFrameWndProc;
    16821686
    16831687PosChangedEnd:
  • TabularUnified tags/trunk/src/user32/win32wbase.cpp

    r20569 r20581  
    1 /* $Id: win32wbase.cpp,v 1.368 2003-04-24 13:59:14 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.369 2003-04-28 08:41:08 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    18311831    case WM_ICONERASEBKGND:
    18321832    {
    1833       RECT rect;
    1834       int rc;
    1835 
    1836         if (!windowClass || !windowClass->getBackgroundBrush()) return 0;
     1833      HBRUSH hBrush;
     1834      RECT   rect;
     1835      int    rc;
     1836     
     1837        if (!windowClass || (!windowClass->getBackgroundBrush()
     1838                              && !(getStyle() & WS_MINIMIZE))) return 0;
     1839
     1840        //PF For PM desktop/MDI icons allocate brush as well to avoid
     1841        //garbage in icons
     1842
     1843        if (!windowClass->getBackgroundBrush())
     1844            hBrush = GetStockObject(GRAY_BRUSH);
     1845        else
     1846        {
     1847            hBrush = windowClass->getBackgroundBrush();
     1848            if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1))
     1849                hBrush = GetSysColorBrush(hBrush-1);
     1850        }
     1851             
    18371852
    18381853        rc = GetClipBox( (HDC)wParam, &rect );
    18391854        if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION))
    1840         {
    1841             HBRUSH hBrush = windowClass->getBackgroundBrush();
    1842 
    1843             if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1))
    1844                 hBrush = GetSysColorBrush(hBrush-1);
    1845 
    18461855            FillRect( (HDC)wParam, &rect, hBrush);
    1847         }
     1856
    18481857        return 1;
    18491858    }
Note: See TracChangeset for help on using the changeset viewer.