Changeset 5406 for trunk/src/user32/windowclass.cpp
- Timestamp:
- Mar 31, 2001, 12:08:20 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windowclass.cpp
r5242 r5406 1 /* $Id: windowclass.cpp,v 1.1 6 2001-02-22 10:37:31sandervl Exp $ */1 /* $Id: windowclass.cpp,v 1.17 2001-03-30 22:08:20 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Code for OS/2 … … 51 51 memcpy(&wc.style, lpWndClass, sizeof(WNDCLASSA)); 52 52 wc.hIconSm = 0; 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); 53 60 54 61 if(Win32WndClass::FindClass(wc.hInstance, (LPSTR)wc.lpszClassName)) { … … 103 110 Win32WndClass *winclass; 104 111 105 dprintf(("RegisterClassW\n"));106 112 //CB: size new in ex structure 107 113 wc.cbSize = sizeof(wc); 108 114 memcpy(&wc.style, lpwc, sizeof(WNDCLASSA)); 109 wc.hIconSm = 0; 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); 110 122 111 123 if(Win32WndClass::FindClass(wc.hInstance, (LPWSTR)wc.lpszClassName)) { 112 dprintf(("RegisterClassW %x %x already exists", wc.hInstance, wc.lpszClassName)); 124 if(HIWORD(wc.lpszClassName)) { 125 dprintf(("RegisterClassW %x %ls already exists", wc.hInstance, wc.lpszClassName)); 126 } 127 else dprintf(("RegisterClassW %x %x already exists", wc.hInstance, wc.lpszClassName)); 113 128 SetLastError(ERROR_CLASS_ALREADY_EXISTS); 114 129 return 0; … … 138 153 139 154 if(Win32WndClass::FindClass(wc.hInstance, (LPWSTR)wc.lpszClassName)) { 140 dprintf(("RegisterClassW %x %x already exists", wc.hInstance, wc.lpszClassName)); 155 if(HIWORD(wc.lpszClassName)) { 156 dprintf(("RegisterClassExW %x %ls already exists", wc.hInstance, wc.lpszClassName)); 157 } 158 else dprintf(("RegisterClassExW %x %x already exists", wc.hInstance, wc.lpszClassName)); 141 159 SetLastError(ERROR_CLASS_ALREADY_EXISTS); 142 160 return 0; … … 306 324 char *astring = NULL; 307 325 308 dprintf(("USER32: GetClassInfoExW\n")); 326 if(HIWORD(lpszClass)) { 327 dprintf(("USER32:GetClassInfoExW (%08xh,%ls,%08x)", 328 hInstance, lpszClass, lpwcx)); 329 } 330 else dprintf(("USER32:GetClassInfoExW (%08xh,%x,%08x)", 331 hInstance, lpszClass, lpwcx)); 309 332 310 333 if(HIWORD(lpszClass) != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.