user/defdlg.c: Just restore focus to current control [Bug:430]
Vitaliy Margolen
wine-patch at kievinfo.com
Wed Oct 19 16:58:26 CDT 2005
Restore focus should not select all text in edit control. Only tabbing into it
should do that (according to msdn).
Vitaliy Margolen
changelog:
user/defdlg.c:
- Restore focus to the current control without selecting text
-------------- next part --------------
Index: dlls/user/defdlg.c
===================================================================
RCS file: /home/wine/wine/dlls/user/defdlg.c,v
retrieving revision 1.1
diff -u -p -r1.1 defdlg.c
--- dlls/user/defdlg.c 25 Apr 2005 11:33:36 -0000 1.1
+++ dlls/user/defdlg.c 19 Oct 2005 21:55:35 -0000
@@ -104,7 +104,7 @@ static void DEFDLG_RestoreFocus( HWND hw
infoPtr->hwndFocus = GetNextDlgTabItem( hwnd, 0, FALSE );
if (!IsWindow( infoPtr->hwndFocus )) return;
}
- DEFDLG_SetFocus( hwnd, infoPtr->hwndFocus );
+ SetFocus( infoPtr->hwndFocus );
/* This used to set infoPtr->hwndFocus to NULL for no apparent reason,
sometimes losing focus when receiving WM_SETFOCUS messages. */
More information about the wine-patches
mailing list