Changeset 1159 for trunk/src/user32/window.cpp
- Timestamp:
- Oct 7, 1999, 11:28:02 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r1063 r1159 1 /* $Id: window.cpp,v 1.1 0 1999-09-26 14:44:58sandervl Exp $ */1 /* $Id: window.cpp,v 1.11 1999-10-07 09:28:02 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 174 174 //TODO: According to the docs className can be a 16 bits atom 175 175 // Wine seems to assume it's a string though... 176 if(!str icmp(className, MDICLIENTCLASSNAMEA)) {176 if(!strcmpi(className, MDICLIENTCLASSNAMEA)) { 177 177 window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, FALSE); 178 178 } … … 238 238 //TODO: According to the docs className can be a 16 bits atom 239 239 // Wine seems to assume it's a string though... 240 if(!lstrcmp W(className, (LPWSTR)MDICLIENTCLASSNAMEW)) {240 if(!lstrcmpiW(className, (LPWSTR)MDICLIENTCLASSNAMEW)) { 241 241 window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, TRUE); 242 242 } … … 784 784 BOOL rc; 785 785 786 #if 1 786 787 hwnd = Win32BaseWindow::Win32ToOS2Handle(hwnd); 787 788 rc = OSLibWinQueryWindowRect(hwnd, pRect); 788 789 dprintf(("USER32: GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom)); 789 790 return rc; 791 #else 792 Win32BaseWindow *window; 793 794 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 795 if(!window) { 796 dprintf(("GetClientRect, window %x not found", hwnd)); 797 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 798 return 0; 799 } 800 *pRect = *window->getClientRect(); 801 dprintf(("GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom)); 802 return TRUE; 803 #endif 790 804 } 791 805 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.