- Timestamp:
- Dec 4, 2002, 4:23:41 PM (23 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r9345 r9463 1 /* $Id: oslibwin.cpp,v 1.1 29 2002-10-15 09:18:10sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.130 2002-12-04 15:23:38 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 682 682 pwpos->hwndInsertAfter = hWinAfter; 683 683 pwpos->hwnd = hWindow; 684 685 dprintf2(("OSLibMapSWPtoWINDOWPOS %x (%d,%d)(%d,%d) -> %x (%d,%d)(%d,%d) parent height %d", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy, flags, x, y, cx, cy, parentHeight)); 684 686 } 685 687 //****************************************************************************** … … 762 764 pswp->ulReserved1 = 0; 763 765 pswp->ulReserved2 = 0; 766 767 dprintf2(("OSLibMapWINDOWPOStoSWP %x (%d,%d)(%d,%d) -> %x (%d,%d)(%d,%d) parent height %d", pwpos->flags, pwpos->x, pwpos->y, pwpos->cx, pwpos->cy, flags, x, y, cx, cy, parentHeight)); 764 768 } 765 769 //****************************************************************************** -
trunk/src/user32/pmwindow.cpp
r9437 r9463 1 /* $Id: pmwindow.cpp,v 1.19 0 2002-11-27 13:56:26sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.191 2002-12-04 15:23:39 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 21 21 22 22 #include <os2wrap.h> 23 #include <odinwrap.h> 23 24 #include <stdlib.h> 24 25 #include <string.h> … … 491 492 SetWin32TIB(); 492 493 494 #ifdef DEBUG 495 dbg_ThreadPushCall("Win32WindowProc"); 496 #endif 497 493 498 // BEGIN NOTE-------------->>>>>> If this is changed, also change Win32FrameWindowProc!! <<<<<<<<<<<-------------------- BEGIN 494 499 teb = GetThreadTEB(); … … 557 562 RELEASE_WNDOBJ(win32wnd); 558 563 RestoreOS2TIB(); 564 565 #ifdef DEBUG 566 dbg_ThreadPopCall(); 567 #endif 559 568 return rc; 560 569 } … … 670 679 win32wnd->callVisibleRgnNotifyProc(FALSE); 671 680 goto RunDefWndProc; 681 682 case WIN32APP_DDRAWFULLSCREEN: 683 //Changing the size of the win32 window in SetCooperativeLevel can 684 //fail if this happens during WM_ADJUSTWINDOWPOS 685 //NOTE: This is not a good solution, but a proper fix is more difficult 686 // with the current window mess 687 dprintf(("WIN32APP_DDRAWFULLSCREEN %x (%d,%d)", win32wnd->getWindowHandle(), mp1, mp2)); 688 SetWindowPos(win32wnd->getWindowHandle(), HWND_TOP_W, 0, 0, (DWORD)mp1, (DWORD)mp2, 0); 689 ShowWindow(win32wnd->getWindowHandle(), SW_SHOW_W); 690 break; 672 691 673 692 case WIN32APP_SETFOCUSMSG: … … 1033 1052 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 1034 1053 RestoreOS2TIB(); 1054 1055 #ifdef DEBUG 1056 dbg_ThreadPopCall(); 1057 #endif 1035 1058 return (MRESULT)rc; 1036 1059 … … 1039 1062 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 1040 1063 RestoreOS2TIB(); 1064 1065 #ifdef DEBUG 1066 dbg_ThreadPopCall(); 1067 #endif 1041 1068 return WinDefWindowProc( hwnd, msg, mp1, mp2 ); 1042 1069 } /* End of Win32WindowProc */ … … 1051 1078 MRESULT rc = 0; 1052 1079 MSG winMsg, *pWinMsg; 1080 1081 #ifdef DEBUG 1082 dbg_ThreadPushCall("Win32FrameWindowProc"); 1083 #endif 1053 1084 1054 1085 //Restore our FS selector … … 1406 1437 } 1407 1438 dprintf(("WM_ADJUSTWINDOWPOS ret %x flags %x", ret, WinQueryWindowUShort(hwnd, QWS_FLAGS))); 1439 //testestset 1440 if(ret == 0x0f) { 1441 dprintf(("PMFRAME:WM_ADJUSTWINDOWPOS, app changed windowpos struct")); 1442 dprintf(("%x (%s) (%d,%d), (%d,%d)", pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy)); 1443 } 1444 //testestset 1408 1445 rc = (MRESULT)ret; 1409 1446 break; … … 1954 1991 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 1955 1992 RestoreOS2TIB(); 1993 1994 #ifdef DEBUG 1995 dbg_ThreadPopCall(); 1996 #endif 1956 1997 return (MRESULT)rc; 1957 1998 … … 1960 2001 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 1961 2002 RestoreOS2TIB(); 2003 2004 #ifdef DEBUG 2005 dbg_ThreadPopCall(); 2006 #endif 1962 2007 return pfnFrameWndProc(hwnd, msg, mp1, mp2); 1963 2008 … … 1968 2013 //calling WinDefWindowProc here breaks Opera hotlist window (WM_ADJUSTWINDOWPOS) 1969 2014 // return pfnFrameWndProc(hwnd, msg, mp1, mp2); 2015 2016 #ifdef DEBUG 2017 dbg_ThreadPopCall(); 2018 #endif 1970 2019 return WinDefWindowProc( hwnd, msg, mp1, mp2 ); 1971 2020 } -
trunk/src/user32/win32wbase.cpp
r9418 r9463 1 /* $Id: win32wbase.cpp,v 1.34 3 2002-11-20 12:59:06sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.344 2002-12-04 15:23:40 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2499 2499 //we will update the restore position at the end of this method 2500 2500 if(!(wpos.flags & SWP_NOSIZE)) { 2501 //TODO: updating the window rectangle doesn't look right 2501 2502 wpos.flags |= SWP_NOSIZE; 2502 2503 rectWindow.right = rectWindow.left + wpos.cx; 2503 2504 rectWindow.bottom = rectWindow.top + wpos.cy; 2505 dprintf(("WARNING: Don't allow size change for minimized window; only save new restore position")); 2506 dprintf(("new window rectangle (%d,%d)(%d,%d)", rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom)); 2504 2507 } 2505 2508 } -
trunk/src/user32/win32wbase.h
r9418 r9463 1 /* $Id: win32wbase.h,v 1.14 6 2002-11-20 12:59:06sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.147 2002-12-04 15:23:41 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 62 62 LPSTR string; /* Property string (or atom) */ 63 63 } PROPERTY; 64 65 //PostThreadMessage is done through Open32; which means the message id will be translated66 //(0xc00 added)67 #define OPEN32_MSGDIFF 0xC0068 #define WIN32APP_POSTMSG (0x1000+OPEN32_MSGDIFF)69 70 //PM doesn't allow SetFocus during WM_SETFOCUS message processing; must delay71 //this by posting a message72 //NOTE Must be smaller than WIN32APP_POSTMSG!73 #define WIN32APP_SETFOCUSMSG (WIN32APP_POSTMSG-1)74 #define WIN32APP_POSTPONEDESTROY (WIN32APP_POSTMSG-2)75 76 #define WIN32MSG_MAGICA 0x1234567877 #define WIN32MSG_MAGICW 0x1234567978 79 typedef struct80 {81 ULONG wParam;82 ULONG lParam;83 } POSTMSG_PACKET;84 64 85 65 #define HAS_DLGFRAME(style,exStyle) \
Note:
See TracChangeset
for help on using the changeset viewer.