Changeset 5406 for trunk/src/user32
- Timestamp:
- Mar 31, 2001, 12:08:20 AM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/syscolor.cpp
r4856 r5406 1 /* $Id: syscolor.cpp,v 1.2 5 2000-12-30 13:27:55sandervl Exp $ */1 /* $Id: syscolor.cpp,v 1.26 2001-03-30 22:08:19 sandervl Exp $ */ 2 2 3 3 /* … … 53 53 RGB(198,195,198), //COLOR_ACTIVEBORDER 54 54 RGB(198,195,198), //COLOR_INACTIVEBORDER 55 RGB(1 98,195,198), //COLOR_APPWORKSPACE55 RGB(128,128,128), //COLOR_APPWORKSPACE 56 56 RGB(0,0,128), //COLOR_HIGHLIGHT 57 57 RGB(255,255,255), //COLOR_HIGHLIGHTTEXT -
trunk/src/user32/user32.cpp
r5385 r5406 1 /* $Id: user32.cpp,v 1.9 4 2001-03-27 16:17:52sandervl Exp $ */1 /* $Id: user32.cpp,v 1.95 2001-03-30 22:08:19 sandervl Exp $ */ 2 2 3 3 /* … … 1526 1526 BOOL WIN32API InvertRect( HDC hDC, const RECT * lprc) 1527 1527 { 1528 dprintf(("USER32: InvertRect %x", hDC)); 1528 if(lprc) { 1529 dprintf(("USER32: InvertRect %x (%d,%d)(%d,%d)", hDC, lprc->left, lprc->top, lprc->right, lprc->bottom)); 1530 } 1531 else dprintf(("USER32: InvertRect %x NULL", hDC)); 1529 1532 return O32_InvertRect(hDC,lprc); 1530 1533 } -
trunk/src/user32/window.cpp
r5404 r5406 1 /* $Id: window.cpp,v 1.9 0 2001-03-30 11:14:36sandervl Exp $ */1 /* $Id: window.cpp,v 1.91 2001-03-30 22:08:20 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 155 155 dprintf(("CreateWindowEx32W: bad class name %04x",LOWORD(className))); 156 156 else 157 dprintf(("CreateWindowEx32W: bad class name '% x'", className));157 dprintf(("CreateWindowEx32W: bad class name '%ls'", className)); 158 158 159 159 SetLastError(ERROR_INVALID_PARAMETER); … … 290 290 } 291 291 292 dprintf(("USER32: CreateMDIWindowW\n"));293 292 cs.szClass = lpszClassName; 294 293 cs.szTitle = lpszWindowName; … … 300 299 cs.style = dwStyle; 301 300 cs.lParam = lParam; 301 302 if(HIWORD(lpszClassName)) { 303 dprintf(("CreateMDIWindowW: class %ls parent %x (%d,%d) (%d,%d), %x %x lParam=%x", lpszClassName, hwndParent, x, y, nWidth, nHeight, dwStyle, lParam)); 304 } 305 else dprintf(("CreateMDIWindowW: class %d parent %x (%d,%d) (%d,%d), %x %x lParam=%x", lpszClassName, hwndParent, x, y, nWidth, nHeight, dwStyle, lParam)); 302 306 303 307 return window->SendMessageW(WM_MDICREATE, 0, (LPARAM)&cs); … … 839 843 #ifdef DEBUG 840 844 int rc = window->GetWindowTextW(lpsz, cch); 841 if(rc) { 842 LPSTR astring = UnicodeToAsciiString(lpsz); 843 dprintf(("GetWindowTextW %x %s", hwnd, lpsz)); 844 free(astring); 845 } 846 else dprintf(("GetWindowTextW %x returned %d", hwnd, rc)); 845 dprintf(("GetWindowTextW %x %ls", hwnd, lpsz)); 847 846 return rc; 848 847 #else … … 877 876 return 0; 878 877 } 879 #ifdef DEBUG 880 LPSTR astring = UnicodeToAsciiString(lpsz); 881 dprintf(("SetWindowTextW %x %s", hwnd, astring)); 882 free(astring); 883 #endif 878 dprintf(("SetWindowTextW %x %ls", hwnd, lpsz)); 884 879 return window->SetWindowTextW((LPWSTR)lpsz); 885 880 } -
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.