Changeset 8945 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jul 30, 2002, 9:55:35 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r8944 r8945 1 /* $Id: win32wbase.cpp,v 1.33 1 2002-07-30 18:55:42achimha Exp $ */1 /* $Id: win32wbase.cpp,v 1.332 2002-07-30 19:55:35 achimha Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 482 482 } 483 483 484 // check if it's the standard child window case 484 485 if ((cs->style & WS_CHILD) && cs->hwndParent) 485 486 { 486 487 SetParent(cs->hwndParent); 487 owner = 0;488 owner = NULL; 488 489 //SvL: Shell positioning shouldn't be done for child windows! (breaks Notes) 489 490 fXDefault = fCXDefault = FALSE; … … 491 492 else 492 493 { 494 // either no child window or a popup window 495 493 496 SetParent(0); 494 497 if (!cs->hwndParent || (cs->hwndParent == windowDesktop->getWindowHandle())) { … … 497 500 else 498 501 { 499 Win32BaseWindow *wndparent = GetWindowFromHandle(cs->hwndParent); 502 // we're a popup window 503 504 Win32BaseWindow *wndparent = GetWindowFromHandle(cs->hwndParent); 500 505 if(wndparent) { 501 506 owner = GetWindowFromHandle(wndparent->GetTopParent()); … … 555 560 OSLibWinConvertStyle(dwStyle,dwExStyle,&dwOSWinStyle, &dwOSFrameStyle); 556 561 557 OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP, 558 dwOSWinStyle, dwOSFrameStyle, (char *)windowNameA, 559 (owner) ? owner->getOS2WindowHandle() : ((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP), 562 // create PM windows - frame and client window 563 HWND hwndOS2Frame = (getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP; 564 OS2Hwnd = OSLibWinCreateWindow(hwndOS2Frame, 565 dwOSWinStyle, 566 dwOSFrameStyle, 567 (char *)windowNameA, 568 (owner) ? owner->getOS2WindowHandle() : hwndOS2Frame, 560 569 (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE, 561 0, fTaskList,fXDefault | fCXDefault,windowClass->getStyle(), &OS2HwndFrame); 570 0, 571 fTaskList, 572 fXDefault | fCXDefault, 573 windowClass->getStyle(), 574 &OS2HwndFrame); 562 575 if(OS2Hwnd == 0) { 563 576 dprintf(("Window creation failed!! OS LastError %0x", OSLibWinGetLastError()));
Note:
See TracChangeset
for help on using the changeset viewer.