Changeset 5428 for trunk/src/user32/windowclass.cpp
- Timestamp:
- Apr 1, 2001, 9:38:51 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windowclass.cpp
r5406 r5428 1 /* $Id: windowclass.cpp,v 1.1 7 2001-03-30 22:08:20sandervl Exp $ */1 /* $Id: windowclass.cpp,v 1.18 2001-04-01 19:38:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Code for OS/2 … … 52 52 wc.hIconSm = 0; 53 53 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 61 54 if(Win32WndClass::FindClass(wc.hInstance, (LPSTR)wc.lpszClassName)) { 62 55 if(HIWORD(wc.lpszClassName)) { … … 68 61 } 69 62 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 70 70 wclass = new Win32WndClass(&wc,FALSE); 71 71 if(wclass == NULL) { … … 114 114 memcpy(&wc.style, lpwc, sizeof(WNDCLASSA)); 115 115 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 123 116 if(Win32WndClass::FindClass(wc.hInstance, (LPWSTR)wc.lpszClassName)) { 124 117 if(HIWORD(wc.lpszClassName)) { … … 129 122 return 0; 130 123 } 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); 131 131 132 132 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.