Changeset 6064 for trunk/src


Ignore:
Timestamp:
Jun 22, 2001, 9:32:48 AM (24 years ago)
Author:
sandervl
Message:

sys icon drawing fix

File:
1 edited

Legend:

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

    r5993 r6064  
    1 /* $Id: win32wbasenonclient.cpp,v 1.34 2001-06-13 10:29:46 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.35 2001-06-22 07:32:48 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    891891      if ((dwStyle & WS_SYSMENU) && !(dwExStyle & WS_EX_TOOLWINDOW))
    892892      {
    893          int size = GetSystemMetrics(SM_CYCAPTION);
     893         HICON hSysIcon = IconForWindow(ICON_SMALL);
     894
     895         if (hSysIcon) {
     896             int size = GetSystemMetrics(SM_CYCAPTION);
    894897   
    895          r2 = r;
    896          r2.right  = r2.left + size;
    897          r2.bottom = r2.top + size;
    898          FillRect(hdc, &r2, GetSysColorBrush(COLOR_MENU));
    899 
    900          DrawSysButton(hdc,&r);
     898             r2 = r;
     899             r2.right  = r2.left + size;
     900             r2.bottom = r2.top + size;
     901             FillRect(hdc, &r2, GetSysColorBrush(COLOR_MENU));
     902
     903             DrawSysButton(hdc,&r);
     904         }
    901905      }
    902906      return;
Note: See TracChangeset for help on using the changeset viewer.