Changeset 1337 for trunk/src/user32/window.cpp
- Timestamp:
- Oct 17, 1999, 6:42:40 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r1336 r1337 1 /* $Id: window.cpp,v 1.1 7 1999-10-17 15:46:10 sandervl Exp $ */1 /* $Id: window.cpp,v 1.18 1999-10-17 16:42:40 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 147 147 { 148 148 sprintf(tmpClassA,"#%d", (int) className); 149 149 AsciiToUnicode(tmpClassA, tmpClassW); 150 150 classAtom = GlobalFindAtomW(tmpClassW); 151 151 className = (LPCWSTR)tmpClassW; … … 463 463 if(!window) { 464 464 dprintf(("SetWindowPos, window %x not found", hwnd)); 465 SetLastError(ERROR_INVALID_WINDOW_HANDLE);465 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 466 466 return 0; 467 467 } … … 471 471 //****************************************************************************** 472 472 //****************************************************************************** 473 BOOL WIN32API SetWindowPlacement( HWND arg1, const WINDOWPLACEMENT * arg2) 474 { 475 dprintf(("USER32: SetWindowPlacement\n")); 476 return O32_SetWindowPlacement(arg1, arg2); 477 } 478 //****************************************************************************** 479 //****************************************************************************** 480 BOOL WIN32API GetWindowPlacement( HWND arg1, LPWINDOWPLACEMENT arg2) 481 { 482 #ifdef DEBUG 483 WriteLog("USER32: GetWindowPlacement\n"); 484 #endif 485 return O32_GetWindowPlacement(arg1, arg2); 473 BOOL WIN32API SetWindowPlacement(HWND hwnd, const WINDOWPLACEMENT *winpos) 474 { 475 Win32BaseWindow *window; 476 477 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 478 if(!window) { 479 dprintf(("SetWindowPlacement, window %x not found", hwnd)); 480 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 481 return 0; 482 } 483 return window->SetWindowPlacement((WINDOWPLACEMENT *)winpos); 484 } 485 //****************************************************************************** 486 //****************************************************************************** 487 BOOL WIN32API GetWindowPlacement(HWND hwnd, LPWINDOWPLACEMENT arg2) 488 { 489 dprintf(("USER32: GetWindowPlacement\n")); 490 return O32_GetWindowPlacement(Win32BaseWindow::Win32ToOS2FrameHandle(hwnd), arg2); 486 491 } 487 492 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.