Changeset 10275 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Oct 20, 2003, 7:17:23 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r10240 r10275 1 /* $Id: pmwindow.cpp,v 1.2 19 2003-08-22 13:16:45sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.220 2003-10-20 17:17:22 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 19 19 #define INCL_DOSDEVIOCTL 20 20 #define INCL_WINTRACKRECT 21 #define INCL_BASE 21 22 22 23 #include <os2wrap.h> … … 53 54 #include <winscan.h> 54 55 #include <oslibdnd.h> 56 #include <custombuild.h> 55 57 #include <win\dbt.h> 56 58 #include "dragdrop.h" … … 504 506 POSTMSG_PACKET *postmsg; 505 507 OSLIBPOINT point, ClientPoint; 506 508 EXCEPTIONREGISTRATIONRECORD exceptRegRec = {0,0}; 509 510 ODIN_SetExceptionHandler(&exceptRegRec); 507 511 // restore our FS selector 508 512 SetWin32TIB(); … … 581 585 RELEASE_WNDOBJ(win32wnd); 582 586 RestoreOS2TIB(); 587 ODIN_UnsetExceptionHandler(&exceptRegRec); 583 588 584 589 #ifdef DEBUG … … 749 754 } 750 755 756 #ifdef DEBUG 751 757 case WM_SETFOCUS: 752 758 { 753 759 HWND hwndFocus = (HWND)mp1; 754 760 dprintf(("OS2: WM_SETFOCUS %x %x (%x) %d cur focus %x", win32wnd->getWindowHandle(), mp1, OS2ToWin32Handle(hwndFocus), mp2, WinQueryFocus(HWND_DESKTOP))); 755 break; 756 } 761 if(WinQueryFocus(HWND_DESKTOP) == win32wnd->getOS2FrameWindowHandle()) { 762 dprintf(("WARNING: Focus set to frame window")); 763 } 764 break; 765 } 766 #endif 757 767 758 768 //Handle all focus processed during WM_FOCUSCHANGED; PM doesn't like focus … … 1148 1158 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 1149 1159 RestoreOS2TIB(); 1160 ODIN_UnsetExceptionHandler(&exceptRegRec); 1150 1161 1151 1162 #ifdef DEBUG … … 1157 1168 // dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd)); 1158 1169 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 1170 1159 1171 RestoreOS2TIB(); 1172 ODIN_UnsetExceptionHandler(&exceptRegRec); 1160 1173 1161 1174 #ifdef DEBUG … … 1174 1187 MRESULT rc = 0; 1175 1188 MSG winMsg, *pWinMsg; 1189 EXCEPTIONREGISTRATIONRECORD exceptRegRec = {0,0}; 1176 1190 1177 1191 #ifdef DEBUG … … 1179 1193 #endif 1180 1194 1195 ODIN_SetExceptionHandler(&exceptRegRec); 1181 1196 //Restore our FS selector 1182 1197 SetWin32TIB(); … … 1890 1905 rc = pfnFrameWndProc(hwnd, msg, mp1, mp2); 1891 1906 SetWin32TIB(); 1892 dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x ", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), (mp2) ? OS2ToWin32Handle((DWORD)mp2) : 0, (rc) ? OS2ToWin32Handle((DWORD)rc) : 0));1907 dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x returned %x (%x)", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), (mp2) ? OS2ToWin32Handle((DWORD)mp2) : 0, (rc) ? OS2ToWin32Handle((DWORD)rc) : 0, rc)); 1893 1908 break; 1894 1909 // goto RunDefFrameWndProc; … … 2164 2179 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 2165 2180 RestoreOS2TIB(); 2181 ODIN_UnsetExceptionHandler(&exceptRegRec); 2166 2182 2167 2183 #ifdef DEBUG … … 2174 2190 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 2175 2191 RestoreOS2TIB(); 2192 ODIN_UnsetExceptionHandler(&exceptRegRec); 2176 2193 2177 2194 #ifdef DEBUG … … 2184 2201 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 2185 2202 RestoreOS2TIB(); 2203 ODIN_UnsetExceptionHandler(&exceptRegRec); 2204 2186 2205 //calling WinDefWindowProc here breaks Opera hotlist window (WM_ADJUSTWINDOWPOS) 2187 2206 // return pfnFrameWndProc(hwnd, msg, mp1, mp2); … … 2200 2219 TEB *teb; 2201 2220 MRESULT rc = 0; 2221 EXCEPTIONREGISTRATIONRECORD exceptRegRec = {0,0}; 2202 2222 2203 2223 //Restore our FS selector … … 2218 2238 RestoreOS2TIB(); 2219 2239 rc = pfnOldWindowProc(hwnd, msg, mp1, mp2); 2240 2241 ODIN_SetExceptionHandler(&exceptRegRec); 2220 2242 SetWin32TIB(); 2221 2243 switch(msg) { … … 2239 2261 if(win32wnd) RELEASE_WNDOBJ(win32wnd); 2240 2262 RestoreOS2TIB(); 2263 ODIN_UnsetExceptionHandler(&exceptRegRec); 2241 2264 return rc; 2242 2265
Note:
See TracChangeset
for help on using the changeset viewer.