Changeset 41 for trunk/bitmap.cpp
- Timestamp:
- Mar 17, 2018, 11:00:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bitmap.cpp
r28 r41 33 33 SWP swp; 34 34 SHORT sWidth, sHeight; 35 CHAR ach[32] ;35 CHAR ach[32] = {0}; 36 36 37 37 // wait for the selected window to rise to the surface 38 38 if (f) 39 39 { 40 WinSet WindowPos (hwndParent, HWND_TOP, 0,0, 0,0, SWP_ZORDER);40 WinSetFocus(HWND_DESKTOP, hwndParent); 41 41 // FIXME uh, yukki! polling! but seems to be the easiest way for now. 42 42 for (USHORT i = 0; i < MAX_WAIT; i++) 43 43 { 44 44 DosSleep (100); 45 if (hwndParent == WinQueryFocus(HWND_DESKTOP)) { 46 break; 47 } 48 else 49 { 50 // check if topmost window is a menu 51 WinQueryClassName (WinQueryFocus(HWND_DESKTOP), 52 sizeof (ach), ach); 53 if (stricmp (ach, "#4") == 0) 54 break; 55 } 45 56 WinQueryWindowPos (hwndParent, &swp); 46 57 if ((swp.hwndInsertBehind == HWND_TOP) || 47 (swp.hwndInsertBehind == hwndSnapshot)) 58 (swp.hwndInsertBehind == hwndSnapshot)) { 48 59 break; 60 } 49 61 else 50 62 {
Note:
See TracChangeset
for help on using the changeset viewer.