Changeset 5173 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Feb 18, 2001, 6:59:05 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r5164 r5173 1 /* $Id: win32wbase.cpp,v 1.23 6 2001-02-18 14:18:39sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.237 2001-02-18 17:59:05 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 97 97 fComingToTop = FALSE; 98 98 fCreateSetWindowPos = FALSE; 99 fCreationFinished= FALSE; 99 100 100 101 windowNameA = NULL; … … 470 471 } 471 472 OSLibWinSetVisibleRegionNotify(OS2Hwnd, TRUE); 473 fCreationFinished = TRUE; //creation done with success 472 474 SetLastError(0); 473 475 return TRUE; … … 477 479 BOOL Win32BaseWindow::MsgCreate(HWND hwndOS2) 478 480 { 479 CREATESTRUCTA *cs = tmpcs; //pointer to CREATESTRUCT used in CreateWindowExA method 480 POINT maxSize, maxPos, minTrack, maxTrack; 481 CREATESTRUCTA *cs = tmpcs; //pointer to CREATESTRUCT used in CreateWindowExA method 482 POINT maxSize, maxPos, minTrack, maxTrack; 483 HWND hwnd = getWindowHandle(); 481 484 482 485 OS2Hwnd = hwndOS2; … … 707 710 rectClient.bottom-rectClient.top)); 708 711 712 if(!::IsWindow(hwnd)) 713 { 714 dprintf(("Createwindow: WM_SIZE destroyed window")); 715 goto end; 716 } 709 717 SendInternalMessageA(WM_MOVE,0,MAKELONG(rectClient.left,rectClient.top)); 718 if(!::IsWindow(hwnd)) 719 { 720 dprintf(("Createwindow: WM_MOVE destroyed window")); 721 goto end; 722 } 710 723 } 711 724 if (getStyle() & (WS_MINIMIZE | WS_MAXIMIZE)) 712 725 { 713 714 726 RECT newPos; 727 UINT swFlag = (getStyle() & WS_MINIMIZE) ? SW_MINIMIZE : SW_MAXIMIZE; 715 728 setStyle(getStyle() & ~(WS_MAXIMIZE | WS_MINIMIZE)); 716 729 MinMaximize(swFlag, &newPos); 717 730 swFlag = ((getStyle() & WS_CHILD) || GetActiveWindow()) ? SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED 718 731 : SWP_NOZORDER | SWP_FRAMECHANGED; 719 732 SetWindowPos(0, newPos.left, newPos.top, newPos.right, newPos.bottom, swFlag); 733 if(!::IsWindow(hwnd)) 734 { 735 dprintf(("Createwindow: min/max destroyed window")); 736 goto end; 737 } 720 738 } 721 739 … … 727 745 getParent()->SendInternalMessageA(WM_PARENTNOTIFY, MAKEWPARAM(WM_CREATE, getWindowId()), (LPARAM)getWindowHandle()); 728 746 } 729 if(!::IsWindow( getWindowHandle()))747 if(!::IsWindow(hwnd)) 730 748 { 731 749 dprintf(("Createwindow: WM_PARENTNOTIFY destroyed window")); … … 796 814 TIMER_KillTimerFromWindow(OS2Hwnd); 797 815 798 if(getFirstChild() == NULL ) {816 if(getFirstChild() == NULL && fCreationFinished) { 799 817 delete this; 800 818 }
Note:
See TracChangeset
for help on using the changeset viewer.