Changeset 9463 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Dec 4, 2002, 4:23:41 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.