- Timestamp:
- Apr 2, 2001, 12:13:28 AM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r5373 r5429 1 /* $Id: win32dlg.cpp,v 1.5 8 2001-03-25 08:50:42sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.59 2001-04-01 22:13:27 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 663 663 dprintf(("Create CONTROL %d", info.id)); 664 664 665 char *classNameA = NULL; 666 char *windowNameA = NULL; 667 668 if(HIWORD(info.className)) { 669 classNameA = UnicodeToAsciiString((LPWSTR)info.className); 670 } 671 else classNameA = (char *)info.className; 672 673 if(HIWORD(info.windowName)) { 674 windowNameA = UnicodeToAsciiString((LPWSTR)info.windowName); 675 } 676 else windowNameA = (char *)info.windowName; 677 678 hwndCtrl = ::CreateWindowExA( info.exStyle | WS_EX_NOPARENTNOTIFY, 679 classNameA, 680 windowNameA, 665 hwndCtrl = ::CreateWindowExW( info.exStyle | WS_EX_NOPARENTNOTIFY, 666 (LPWSTR)info.className, 667 (LPWSTR)info.windowName, 681 668 info.style | WS_CHILD, 682 669 MulDiv(info.x, xUnit, 4), … … 686 673 getWindowHandle(), (HMENU)info.id, 687 674 hInst, info.data ); 688 if(HIWORD(classNameA)) {689 FreeAsciiString(classNameA);690 }691 if(HIWORD(windowNameA)) {692 FreeAsciiString(windowNameA);693 }694 675 695 676 if (!hwndCtrl) return FALSE; -
trunk/src/user32/win32wbase.cpp
r5404 r5429 1 /* $Id: win32wbase.cpp,v 1.24 7 2001-03-30 11:14:36sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.248 2001-04-01 22:13:27 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 300 300 else 301 301 if ((cs->style & WS_CHILD) && !(cs->style & WS_POPUP)) { 302 dprintf(("No parent for child window \n" ));302 dprintf(("No parent for child window" )); 303 303 SetLastError(ERROR_INVALID_PARAMETER); 304 304 return FALSE; /* WS_CHILD needs a parent, but WS_POPUP doesn't */ … … 310 310 { 311 311 GlobalGetAtomNameA( classAtom, buffer, sizeof(buffer) ); 312 dprintf(("Bad class '%s' \n", buffer ));312 dprintf(("Bad class '%s'", buffer )); 313 313 SetLastError(ERROR_INVALID_PARAMETER); 314 314 return 0; … … 320 320 if(HIWORD(cs->lpszClass)) 321 321 { 322 char *astring; 323 324 if(isUnicode) astring = UnicodeToAsciiString((LPWSTR)cs->lpszClass); 325 else astring = (char *)cs->lpszClass; 326 327 dprintf(("Window class %s", astring)); 328 if(isUnicode) FreeAsciiString(astring); 322 if(isUnicode) dprintf(("Window class %ls", cs->lpszClass)); 323 else dprintf(("Window class %s", cs->lpszClass)); 329 324 } 330 325 else dprintf(("Window class %x", cs->lpszClass)); … … 490 485 POINT maxSize, maxPos, minTrack, maxTrack; 491 486 HWND hwnd = getWindowHandle(); 487 LRESULT (* CALLBACK localSend32)(HWND, UINT, WPARAM, LPARAM); 492 488 493 489 OS2Hwnd = hwndOS2; … … 685 681 } 686 682 687 //cs is ascii version of create structure. so use SendInternalMessageA 688 if(SendInternalMessageA(WM_NCCREATE,0,(LPARAM)cs)) 683 localSend32 = (isUnicode) ? ::SendMessageW : ::SendMessageA; 684 685 if(localSend32(getWindowHandle(), WM_NCCREATE,0,(LPARAM)cs)) 689 686 { 690 687 RECT tmpRect; … … 710 707 fNoSizeMsg = FALSE; 711 708 if (cs->style & WS_VISIBLE) dwStyle |= WS_VISIBLE; //program could change position in WM_CREATE 712 if( ( SendInternalMessageA(WM_CREATE, 0, (LPARAM)cs )) != -1 )709 if( (localSend32(getWindowHandle(), WM_CREATE, 0, (LPARAM)cs )) != -1 ) 713 710 { 714 711 if(!(flags & WIN_NEED_SIZE)) -
trunk/src/user32/windowclass.cpp
r5428 r5429 1 /* $Id: windowclass.cpp,v 1.1 8 2001-04-01 19:38:51sandervl Exp $ */1 /* $Id: windowclass.cpp,v 1.19 2001-04-01 22:13:28 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Code for OS/2 … … 46 46 Win32WndClass *wclass; 47 47 48 dprintf(("RegisterClassA\n"));49 48 //CB: size new in ex structure 50 49 wc.cbSize = sizeof(wc); … … 62 61 63 62 //TODO: not destroyed when class is unregistered (neither does Wine, but that might be a bug) 63 dprintf(("RegisterClassA")); 64 64 int iSmIconWidth = GetSystemMetrics(SM_CXSMICON); 65 65 int iSmIconHeight = GetSystemMetrics(SM_CYSMICON); … … 92 92 } 93 93 94 dprintf(("RegisterClassExA \n"));94 dprintf(("RegisterClassExA")); 95 95 wclass = new Win32WndClass((WNDCLASSEXA *)lpWndClass,FALSE); 96 96 if(wclass == NULL) { … … 130 130 LR_COPYFROMRESOURCE); 131 131 132 dprintf(("RegisterClassW")); 132 133 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE); 133 134 if(winclass == NULL) { … … 149 150 Win32WndClass *winclass; 150 151 151 dprintf(("RegisterClassExW\n"));152 152 memcpy(&wc, lpwc, sizeof(WNDCLASSEXA)); 153 153 … … 161 161 } 162 162 163 dprintf(("RegisterClassExW")); 163 164 winclass = new Win32WndClass((WNDCLASSEXA *)&wc, TRUE); 164 165 if(winclass == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.