Changeset 5429 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Apr 2, 2001, 12:13:28 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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))
Note:
See TracChangeset
for help on using the changeset viewer.