Changeset 1256 for trunk/src/user32/window.cpp
- Timestamp:
- Oct 12, 1999, 4:47:24 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r1253 r1256 1 /* $Id: window.cpp,v 1.1 3 1999-10-11 20:54:26sandervl Exp $ */1 /* $Id: window.cpp,v 1.14 1999-10-12 14:47:24 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 179 179 window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, TRUE); 180 180 } 181 else 181 182 if(!lstrcmpiW(className, (LPWSTR)DIALOG_CLASS_NAMEW)) 182 183 { … … 739 740 { 740 741 BOOL rc; 741 742 #if 1 742 HWND hwndWin32 = hwnd; 743 743 744 hwnd = Win32BaseWindow::Win32ToOS2Handle(hwnd); 744 745 rc = OSLibWinQueryWindowRect(hwnd, pRect); 745 dprintf((" USER32: GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));746 dprintf(("GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwndWin32, pRect->left, pRect->top, pRect->right, pRect->bottom)); 746 747 return rc; 747 #else748 Win32BaseWindow *window;749 750 window = Win32BaseWindow::GetWindowFromHandle(hwnd);751 if(!window) {752 dprintf(("GetClientRect, window %x not found", hwnd));753 SetLastError(ERROR_INVALID_WINDOW_HANDLE);754 return 0;755 }756 *pRect = *window->getClientRect();757 dprintf(("GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));758 return TRUE;759 #endif760 748 } 761 749 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.