- Timestamp:
- Nov 14, 1999, 2:07:03 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r1724 r1733 1 /* $Id: win32wbase.cpp,v 1.8 2 1999-11-13 16:42:43 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.83 1999-11-14 13:07:02 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2274 2274 setParent(newparent); 2275 2275 getParent()->AddChild(this); 2276 OSLibWinSetParent(getOS2 WindowHandle(), getParent()->getOS2WindowHandle());2276 OSLibWinSetParent(getOS2FrameWindowHandle(), getParent()->getOS2WindowHandle()); 2277 2277 return oldhwnd; 2278 2278 } … … 2758 2758 ULONG Win32BaseWindow::GetWindowLongA(int index) 2759 2759 { 2760 dprintf2(("GetWindowLongA %x %d", getWindowHandle(), index)); 2760 ULONG value; 2761 2761 2762 switch(index) { 2762 2763 case GWL_EXSTYLE: 2763 return dwExStyle; 2764 value = dwExStyle; 2765 break; 2764 2766 case GWL_STYLE: 2765 return dwStyle; 2767 value = dwStyle; 2768 break; 2766 2769 case GWL_WNDPROC: 2767 return (ULONG)getWindowProc(); 2770 value = (ULONG)getWindowProc(); 2771 break; 2768 2772 case GWL_HINSTANCE: 2769 return hInstance; 2773 value = hInstance; 2774 break; 2770 2775 case GWL_HWNDPARENT: 2771 2776 if(getParent()) { 2772 returngetParent()->getWindowHandle();2777 value = getParent()->getWindowHandle(); 2773 2778 } 2774 else return 0; 2779 else value = 0; 2780 break; 2775 2781 case GWL_ID: 2776 return getWindowId(); 2782 value = getWindowId(); 2783 break; 2777 2784 case GWL_USERDATA: 2778 return userData; 2785 value = userData; 2786 break; 2779 2787 default: 2780 2788 if(index >= 0 && index/4 < nrUserWindowLong) 2781 2789 { 2782 return userWindowLong[index/4]; 2790 value = userWindowLong[index/4]; 2791 break; 2783 2792 } 2784 2793 SetLastError(ERROR_INVALID_PARAMETER); 2785 2794 return 0; 2786 2795 } 2796 dprintf2(("GetWindowLongA %x %d %x", getWindowHandle(), index, value)); 2797 return value; 2787 2798 } 2788 2799 //****************************************************************************** -
trunk/src/user32/windowclass.cpp
r1540 r1733 1 /* $Id: windowclass.cpp,v 1. 4 1999-11-01 19:11:46sandervl Exp $ */1 /* $Id: windowclass.cpp,v 1.5 1999-11-14 13:07:03 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Code for OS/2 … … 266 266 { 267 267 Win32BaseWindow *wnd; 268 269 dprintf(("USER32: GetClassNameA\n")); 268 int rc; 269 270 270 wnd = Win32BaseWindow::GetWindowFromHandle(hwnd); 271 271 if(!wnd) { … … 273 273 return(0); 274 274 } 275 *lpszClassName = 0; 276 rc = (wnd->getClass())->getClassName(lpszClassName, cchClassName); 277 dprintf(("USER32: GetClassNameA %x %s (%d)", hwnd, lpszClassName, rc)); 278 return rc; 279 } 280 //****************************************************************************** 281 //****************************************************************************** 282 int WIN32API GetClassNameW(HWND hwnd, LPWSTR lpszClassName, int cchClassName) 283 { 284 Win32BaseWindow *wnd; 285 286 dprintf(("USER32: GetClassNameW\n")); 287 wnd = Win32BaseWindow::GetWindowFromHandle(hwnd); 288 if(!wnd) { 289 dprintf(("GetClassNameA wnd == NULL")); 290 return(0); 291 } 275 292 return (wnd->getClass())->getClassName(lpszClassName, cchClassName); 276 293 } 277 294 //****************************************************************************** 278 295 //****************************************************************************** 279 int WIN32API GetClassNameW(HWND hwnd, LPWSTR lpszClassName, int cchClassName)280 {281 Win32BaseWindow *wnd;282 283 dprintf(("USER32: GetClassNameW\n"));284 wnd = Win32BaseWindow::GetWindowFromHandle(hwnd);285 if(!wnd) {286 dprintf(("GetClassNameA wnd == NULL"));287 return(0);288 }289 return (wnd->getClass())->getClassName(lpszClassName, cchClassName);290 }291 //******************************************************************************292 //******************************************************************************293 296 LONG WIN32API SetClassLongA(HWND hwnd, int nIndex, LONG lNewVal) 294 297 {
Note:
See TracChangeset
for help on using the changeset viewer.