Changeset 5725 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- May 17, 2001, 11:50:30 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r5685 r5725 1 /* $Id: win32dlg.cpp,v 1.6 2 2001-05-11 08:39:44sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.63 2001-05-17 09:50:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 253 253 254 254 HWND hwndPreInitFocus = GetFocus(); 255 if(SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param)) { 256 SetFocus(hwndFocus); 255 if(SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param)) 256 { 257 /* check where the focus is again, 258 * some controls status might have changed in WM_INITDIALOG */ 259 hwndFocus = GetNextDlgTabItem( getWindowHandle(), 0, FALSE ); 260 if(GetFocus() != hwndFocus) { 261 SetFocus(hwndFocus); 262 } 257 263 } 258 264 else … … 260 266 /* If the dlgproc has returned FALSE (indicating handling of keyboard focus) 261 267 but the focus has not changed, set the focus where we expect it. */ 262 263 268 if ( (getStyle() & WS_VISIBLE) && ( GetFocus() == hwndPreInitFocus ) ) 269 SetFocus( hwndFocus ); 264 270 } 265 271
Note:
See TracChangeset
for help on using the changeset viewer.