Changeset 1357 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Oct 19, 1999, 2:52:31 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r1351 r1357 1 /* $Id: win32wbase.cpp,v 1.5 4 1999-10-18 11:59:58sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.55 1999-10-19 12:52:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 394 394 else 395 395 { 396 if (!cs->hwndParent) { 396 SetParent(windowDesktop->getWindowHandle()); 397 if (!cs->hwndParent || cs->hwndParent == windowDesktop->getWindowHandle()) { 397 398 owner = NULL; 398 399 } 399 400 else 400 401 { 401 owner = GetWindowFromHandle(cs->hwndParent) ;402 owner = GetWindowFromHandle(cs->hwndParent)->GetTopParent(); 402 403 if(owner == NULL) 403 404 { … … 2093 2094 else oldhwnd = 0; 2094 2095 2095 if(hwndNewParent == 0) {//desktop window = parent2096 setParent(NULL);2097 OSLibWinSetParent(getOS2WindowHandle(), OSLIB_HWND_DESKTOP);2098 return oldhwnd;2099 }2100 2096 newparent = GetWindowFromHandle(hwndNewParent); 2101 2097 if(newparent) … … 2114 2110 { 2115 2111 if(getParent()) { 2116 return getParent()->getWindowHandle() == hwndParent;2112 return getParent()->getWindowHandle() == hwndParent; 2117 2113 } 2118 2114 else return 0; … … 2179 2175 Win32BaseWindow *prevchild = 0, *child = 0; 2180 2176 2181 2177 dprintf(("EnumChildWindows of %x parameter %x %x (%x)", getWindowHandle(), lpfn, lParam, getFirstChild())); 2182 2178 for (child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild()) 2183 2179 { … … 2627 2623 WORD Win32BaseWindow::GetWindowWord(int index) 2628 2624 { 2629 if(index >= 0 && index/4 < nrUserWindowLong)2630 {2625 if(index >= 0 && index/4 < nrUserWindowLong) 2626 { 2631 2627 return ((WORD *)userWindowLong)[index/2]; 2632 }2633 SetLastError(ERROR_INVALID_PARAMETER);2634 return 0;2628 } 2629 SetLastError(ERROR_INVALID_PARAMETER); 2630 return 0; 2635 2631 } 2636 2632 //****************************************************************************** … … 2638 2634 void Win32BaseWindow::setWindowId(DWORD id) 2639 2635 { 2640 windowId = id;2641 OSLibSetWindowID(OS2HwndFrame, id);2636 windowId = id; 2637 OSLibSetWindowID(OS2HwndFrame, id); 2642 2638 } 2643 2639 //****************************************************************************** … … 2647 2643 Win32BaseWindow *window; 2648 2644 2649 if(hwnd == NULL && windowDesktop)2650 return windowDesktop;2651 2652 if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) {2653 return window;2654 }2655 else return NULL;2645 if(hwnd == NULL && windowDesktop) 2646 return windowDesktop; 2647 2648 if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) { 2649 return window; 2650 } 2651 else return NULL; 2656 2652 } 2657 2653 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.