Ignore:
Timestamp:
Dec 4, 1999, 1:04:19 AM (26 years ago)
Author:
sandervl
Message:

Experimental WM_ERASEBACKGND change

File:
1 edited

Legend:

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

    r1949 r1965  
    1 /* $Id: win32wbase.cpp,v 1.102 1999-12-02 19:30:40 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.103 1999-12-04 00:04:19 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    16691669        return 1;
    16701670    }
     1671    case WM_PAINTICON:
     1672    case WM_PAINT:
     1673        {
     1674            PAINTSTRUCT ps;
     1675            HDC hdc = BeginPaint(getWindowHandle(), &ps );
     1676            if( hdc )
     1677            {
     1678              if( (getStyle() & WS_MINIMIZE) && getWindowClass()->getIcon())
     1679              {
     1680                int x = (rectWindow.right - rectWindow.left - GetSystemMetrics(SM_CXICON))/2;
     1681                int y = (rectWindow.bottom - rectWindow.top - GetSystemMetrics(SM_CYICON))/2;
     1682                    dprintf(("Painting class icon: vis rect=(%i,%i - %i,%i)\n", ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom ));
     1683                DrawIcon(hdc, x, y, getWindowClass()->getIcon() );
     1684              }
     1685              EndPaint(getWindowHandle(), &ps );
     1686            }
     1687            return 0;
     1688        }
     1689
    16711690    case WM_GETDLGCODE:
    16721691        return 0;
     
    26122631    {
    26132632        OSLibWinQueryWindowProcess(child->getOS2WindowHandle(), &pid, &tid);
    2614        
     2633
    26152634        if(dwThreadId == tid) {
    26162635            dprintf2(("EnumThreadWindows: Found Window %x", child->getWindowHandle()));
Note: See TracChangeset for help on using the changeset viewer.