Ignore:
Timestamp:
Apr 1, 2001, 9:38:51 PM (24 years ago)
Author:
sandervl
Message:

minor updates

File:
1 edited

Legend:

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

    r5406 r5428  
    1 /* $Id: windowclass.cpp,v 1.17 2001-03-30 22:08:20 sandervl Exp $ */
     1/* $Id: windowclass.cpp,v 1.18 2001-04-01 19:38:51 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Code for OS/2
     
    5252    wc.hIconSm = 0;
    5353 
    54     //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
    55     int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
    56     int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    57 
    58     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    59                            LR_COPYFROMRESOURCE);
    60 
    6154    if(Win32WndClass::FindClass(wc.hInstance, (LPSTR)wc.lpszClassName)) {
    6255        if(HIWORD(wc.lpszClassName)) {
     
    6861    }
    6962
     63    //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
     64    int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
     65    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
     66
     67    wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     68                           LR_COPYFROMRESOURCE);
     69
    7070    wclass = new Win32WndClass(&wc,FALSE);
    7171    if(wclass == NULL) {
     
    114114    memcpy(&wc.style, lpwc, sizeof(WNDCLASSA));
    115115
    116     //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
    117     int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
    118     int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    119 
    120     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    121                            LR_COPYFROMRESOURCE);
    122 
    123116    if(Win32WndClass::FindClass(wc.hInstance, (LPWSTR)wc.lpszClassName)) {
    124117        if(HIWORD(wc.lpszClassName)) {
     
    129122        return 0;
    130123    }
     124
     125    //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug)
     126    int iSmIconWidth  = GetSystemMetrics(SM_CXSMICON);
     127    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
     128
     129    wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     130                           LR_COPYFROMRESOURCE);
    131131
    132132    winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE);
Note: See TracChangeset for help on using the changeset viewer.