Changeset 10033 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Apr 24, 2003, 3:59:15 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r9526 r10033 1 /* $Id: win32dlg.cpp,v 1.8 0 2002-12-18 14:04:24 sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.81 2003-04-24 13:59:14 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 27 27 #include <math.h> 28 28 #include <unicode.h> 29 #include "user32api.h" 29 30 30 31 #define DBG_LOCALLOG DBG_win32dlg … … 34 35 35 36 #define GET_SHORT(ptr) (*(SHORT *)(ptr)) 37 36 38 37 39 //****************************************************************************** … … 1137 1139 /* Windows sets the focus to the dialog itself in EndDialog */ 1138 1140 1141 #ifdef __WIN32OS2__ 1142 if (::IsChild(hwnd, GetFocus())) 1143 { 1144 ::SetFocus( hwnd ); 1145 //SvL: Enable the owner if the focus is on one of its children. 1146 // If we don't, then PM will switch focus to another app since 1147 // we hide the window below (hidden windows cannot have focus) 1148 HWND owner = ::GetWindow( hwnd, GW_OWNER); 1149 if(owner) 1150 ::EnableWindow(owner, TRUE); 1151 } 1152 #else 1139 1153 if (::IsChild(hwnd, GetFocus())) 1140 1154 ::SetFocus( hwnd ); 1155 #endif 1141 1156 1142 1157 /* Don't have to send a ShowWindow(SW_HIDE), just do
Note:
See TracChangeset
for help on using the changeset viewer.