- Timestamp:
- Oct 20, 2003, 7:17:23 PM (22 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsgtranslate.cpp
r10216 r10275 1 /* $Id: oslibmsgtranslate.cpp,v 1.11 5 2003-08-08 13:30:19sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.116 2003-10-20 17:17:21 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 68 68 { 69 69 // check if the single slot is occupied already 70 if (teb->o.odin.fTranslated == TRUE) 71 // there's still an already translated message to be processed 72 return FALSE; 70 if (teb->o.odin.fTranslated == TRUE) { 71 // there's still an already translated message to be processed 72 dprintf(("WARNING: translated message already pending!")); 73 return FALSE; 74 } 73 75 74 76 teb->o.odin.fTranslated = TRUE; -
trunk/src/user32/oslibwin.cpp
r10031 r10275 1 /* $Id: oslibwin.cpp,v 1.14 3 2003-04-23 18:00:58sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.144 2003-10-20 17:17:22 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 92 92 93 93 dprintf(("WinCreateWindow %x %s %x task %d shell %d classstyle %x winstyle %x bottom %d", hwndParent, pszName, id, fTaskList, fShellPosition, classStyle, dwWinStyle, fHWND_BOTTOM)); 94 dprintf(("WinCreateWindow parent %x, owner %x", hwndParent, Owner)); 94 95 95 96 //Must not use WS_CLIPCHILDREN style with frame window. Transparency won't work otherwise. -
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 -
trunk/src/user32/user32.cpp
r10197 r10275 1 /* $Id: user32.cpp,v 1.12 8 2003-08-01 10:07:43 sandervl Exp $ */1 /* $Id: user32.cpp,v 1.129 2003-10-20 17:17:23 sandervl Exp $ */ 2 2 3 3 /* … … 117 117 return FALSE; 118 118 } 119 119 120 dprintf2(("USER32: EqualRect (%d,%d)(%d,%d) (%d,%d)(%d,%d)", lprc1->left, lprc1->top, lprc1->right, lprc1->bottom, lprc2->left, lprc2->top, lprc2->right, lprc2->bottom)); 120 121 return (lprc1->left == lprc2->left && 121 122 lprc1->right == lprc2->right && … … 167 168 lprcDst->top = MAX(lprcSrc1->top,lprcSrc2->top); 168 169 lprcDst->bottom = MIN(lprcSrc1->bottom,lprcSrc2->bottom); 170 dprintf2(("USER32: IntersectRect result: (%d,%d)(%d,%d)", lprcDst->left, lprcDst->top, lprcDst->right, lprcDst->bottom)); 169 171 } 170 172 -
trunk/src/user32/win32wbase.cpp
r10261 r10275 1 /* $Id: win32wbase.cpp,v 1.37 8 2003-10-06 09:49:38sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.379 2003-10-20 17:17:23 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 505 505 dwOSFrameStyle, 506 506 (char *)windowNameA, 507 (owner) ? owner->getOS2WindowHandle() : hwndOS2Frame,507 (owner) ? owner->getOS2WindowHandle() : 0, 508 508 (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE, 509 509 0,
Note:
See TracChangeset
for help on using the changeset viewer.