- Timestamp:
- Feb 18, 2001, 6:59:05 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r5171 r5173 1 /* $Id: dc.cpp,v 1.8 7 2001-02-18 17:03:47sandervl Exp $ */1 /* $Id: dc.cpp,v 1.88 2001-02-18 17:59:04 sandervl Exp $ */ 2 2 3 3 /* … … 471 471 //testestest 472 472 GpiQueryViewingLimits(pHps->hps, &rectWindowOS2); 473 dprintf (("view limits (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop));473 dprintf2(("view limits (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop)); 474 474 GpiQueryDefViewingLimits(pHps->hps, &rectWindowOS2); 475 dprintf (("def view limits (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop));475 dprintf2(("def view limits (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop)); 476 476 GpiQueryPageViewport(pHps->hps, &rectWindowOS2); 477 dprintf (("page viewport (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop));477 dprintf2(("page viewport (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop)); 478 478 479 479 GpiQueryGraphicsField(pHps->hps, &rectWindowOS2); 480 dprintf (("graphics field (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop));480 dprintf2(("graphics field (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop)); 481 481 482 482 SIZEL size; 483 483 GpiQueryPickApertureSize(pHps->hps, &size); 484 dprintf (("page viewport (%d,%d)", size.cx, size.cy));484 dprintf2(("page viewport (%d,%d)", size.cx, size.cy)); 485 485 //testestest 486 486 -
trunk/src/user32/win32dlg.cpp
r5072 r5173 1 /* $Id: win32dlg.cpp,v 1.5 6 2001-02-08 18:17:16sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.57 2001-02-18 17:59:05 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 216 216 ULONG Win32Dialog::MsgCreate(HWND hwndOS2) 217 217 { 218 CREATESTRUCTA *cs = tmpcs; //pointer to CREATESTRUCT used in CreateWindowExA method 219 LPARAM param = tmpParam; 220 LPSTR dlgTemplate = tmpDlgTemplate; 221 222 Win32BaseWindow::MsgCreate(hwndOS2); 218 CREATESTRUCTA *cs = tmpcs; //pointer to CREATESTRUCT used in CreateWindowExA method 219 LPARAM param = tmpParam; 220 LPSTR dlgTemplate = tmpDlgTemplate; 221 222 if(Win32BaseWindow::MsgCreate(hwndOS2) == FALSE) { 223 dprintf(("********* DIALOG CREATION FAILED! (main dialog window) ************")); 224 return FALSE; 225 } 223 226 224 227 if(!isUnicode) { -
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 } -
trunk/src/user32/win32wbase.h
r5146 r5173 1 /* $Id: win32wbase.h,v 1.10 5 2001-02-17 14:49:26sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.106 2001-02-18 17:59:05 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 358 358 BOOL fDestroyWindowCalled; //DestroyWindow was called for this window 359 359 BOOL fCreated; 360 BOOL fCreationFinished; //True when window or dialog has been created successfully 361 //Needed to prevent DestroyWindow from deleting the window 362 //object during construction 360 363 BOOL fTaskList; //should be listed in PM tasklist or not 361 364 BOOL fXDefault;
Note:
See TracChangeset
for help on using the changeset viewer.