Changeset 8997 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Aug 13, 2002, 10:17:23 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r8962 r8997 1 /* $Id: pmwindow.cpp,v 1.18 4 2002-08-05 16:31:26sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.185 2002-08-13 20:17:23 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 98 98 VOID APIENTRY DspInitSystemDriverName(PSZ pszDriverName, ULONG lenDriverName); 99 99 100 #ifdef DEBUG 101 static char *DbgGetStringSWPFlags(ULONG flags); 102 static char *DbgPrintQFCFlags(ULONG flags); 103 #endif 104 100 105 //****************************************************************************** 101 106 // Initialize PM; create hab, message queue and register special Win32 window classes … … 1162 1167 HWND hParent = NULLHANDLE, hwndAfter; 1163 1168 1164 dprintf(("PMFRAME:WM_ADJUSTWINDOWPOS %x %x %x (% d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));1169 dprintf(("PMFRAME:WM_ADJUSTWINDOWPOS %x %x %x (%s) (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy)); 1165 1170 1166 1171 ulFlags = pswp->fl; … … 1281 1286 1282 1287 dprintf(("PMFRAME:WM_ADJUSTWINDOWPOS, app changed windowpos struct")); 1283 dprintf(("%x (% d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));1288 dprintf(("%x (%s) (%d,%d), (%d,%d)", pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy)); 1284 1289 1285 1290 if(win32wnd->getParent()) { … … 1365 1370 RECTL rect; 1366 1371 1367 dprintf(("PMFRAME:WM_WINDOWPOSCHANGED (%x) %x %x (% d,%d) (%d,%d)", mp2, win32wnd->getWindowHandle(), pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));1372 dprintf(("PMFRAME:WM_WINDOWPOSCHANGED (%x) %x %x (%s) (%d,%d) (%d,%d)", mp2, win32wnd->getWindowHandle(), pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy)); 1368 1373 if(win32wnd->IsParentChanging()) { 1369 1374 goto PosChangedEnd; … … 1644 1649 #ifdef DEBUG 1645 1650 case WM_QUERYFOCUSCHAIN: 1646 dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), (mp2) ? OS2ToWin32Handle((DWORD)mp2) : 0));1651 dprintf2(("PMFRAME:WM_QUERYFOCUSCHAIN %x fsCmd %x (%s) parent %x", win32wnd->getWindowHandle(), SHORT1FROMMP(mp1), DbgPrintQFCFlags(SHORT1FROMMP(mp1)), (mp2) ? OS2ToWin32Handle((DWORD)mp2) : 0)); 1647 1652 1648 1653 RestoreOS2TIB(); … … 1795 1800 PSWP pswp = (PSWP)mp1; 1796 1801 1797 dprintf(("PMFRAME:WM_ADJUSTFRAMEPOS %x %x %x (% d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));1802 dprintf(("PMFRAME:WM_ADJUSTFRAMEPOS %x %x %x (%s) (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy)); 1798 1803 goto RunDefFrameWndProc; 1799 1804 } … … 1803 1808 PSWP pswp = (PSWP)mp1; 1804 1809 1805 dprintf(("PMFRAME:WM_OWNERPOSCHANGE %x %x %x (% d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));1810 dprintf(("PMFRAME:WM_OWNERPOSCHANGE %x %x %x (%s) (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy)); 1806 1811 goto RunDefFrameWndProc; 1807 1812 } … … 2195 2200 //****************************************************************************** 2196 2201 //****************************************************************************** 2197 2202 #ifdef DEBUG 2203 static char *DbgGetStringSWPFlags(ULONG flags) 2204 { 2205 static char szSWPFlags[512]; 2206 2207 szSWPFlags[0] = 0; 2208 2209 if(flags & SWP_SIZE) { 2210 strcat(szSWPFlags, "SWP_SIZE "); 2211 } 2212 if(flags & SWP_MOVE) { 2213 strcat(szSWPFlags, "SWP_MOVE "); 2214 } 2215 if(flags & SWP_ZORDER) { 2216 strcat(szSWPFlags, "SWP_ZORDER "); 2217 } 2218 if(flags & SWP_SHOW) { 2219 strcat(szSWPFlags, "SWP_SHOW "); 2220 } 2221 if(flags & SWP_HIDE) { 2222 strcat(szSWPFlags, "SWP_HIDE "); 2223 } 2224 if(flags & SWP_NOREDRAW) { 2225 strcat(szSWPFlags, "SWP_NOREDRAW "); 2226 } 2227 if(flags & SWP_NOADJUST) { 2228 strcat(szSWPFlags, "SWP_NOADJUST "); 2229 } 2230 if(flags & SWP_ACTIVATE) { 2231 strcat(szSWPFlags, "SWP_ACTIVATE "); 2232 } 2233 if(flags & SWP_DEACTIVATE) { 2234 strcat(szSWPFlags, "SWP_DEACTIVATE "); 2235 } 2236 if(flags & SWP_EXTSTATECHANGE) { 2237 strcat(szSWPFlags, "SWP_EXTSTATECHANGE "); 2238 } 2239 if(flags & SWP_MINIMIZE) { 2240 strcat(szSWPFlags, "SWP_MINIMIZE "); 2241 } 2242 if(flags & SWP_MAXIMIZE) { 2243 strcat(szSWPFlags, "SWP_MAXIMIZE "); 2244 } 2245 if(flags & SWP_RESTORE) { 2246 strcat(szSWPFlags, "SWP_RESTORE "); 2247 } 2248 if(flags & SWP_FOCUSACTIVATE) { 2249 strcat(szSWPFlags, "SWP_FOCUSACTIVATE "); 2250 } 2251 if(flags & SWP_FOCUSDEACTIVATE) { 2252 strcat(szSWPFlags, "SWP_FOCUSDEACTIVATE "); 2253 } 2254 if(flags & SWP_NOAUTOCLOSE) { 2255 strcat(szSWPFlags, "SWP_NOAUTOCLOSE "); 2256 } 2257 return szSWPFlags; 2258 } 2259 static char *DbgPrintQFCFlags(ULONG flags) 2260 { 2261 static char szQFCFlags[64]; 2262 2263 szQFCFlags[0] = 0; 2264 2265 if(flags & QFC_NEXTINCHAIN) { 2266 strcat(szQFCFlags, "QFC_NEXTINCHAIN"); 2267 } 2268 else 2269 if(flags & QFC_ACTIVE) { 2270 strcat(szQFCFlags, "QFC_ACTIVE"); 2271 } 2272 else 2273 if(flags & QFC_FRAME) { 2274 strcat(szQFCFlags, "QFC_FRAME"); 2275 } 2276 else 2277 if(flags & QFC_SELECTACTIVE) { 2278 strcat(szQFCFlags, "QFC_SELECTACTIVE"); 2279 } 2280 else 2281 if(flags & QFC_PARTOFCHAIN) { 2282 strcat(szQFCFlags, "QFC_PARTOFCHAIN"); 2283 } 2284 2285 return szQFCFlags; 2286 } 2287 #endif 2288 //****************************************************************************** 2289 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.