Author: jimtabor
Date: Sat Mar 26 21:20:55 2016
New Revision: 71058
URL:
http://svn.reactos.org/svn/reactos?rev=71058&view=rev
Log:
[User32]
- Patch by Piotr Caban : Select text control content while setting dialog focus.
- CORE-10912 Wine Staging 1.9.4
- Added comments.
Modified:
trunk/reactos/win32ss/user/user32/windows/dialog.c
Modified: trunk/reactos/win32ss/user/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] Sat Mar 26 21:20:55
2016
@@ -1049,7 +1049,11 @@
focus = GetNextDlgTabItem( hwnd, 0, FALSE );
if (!focus) focus = GetNextDlgGroupItem( hwnd, 0, FALSE );
if (focus)
+ {
+ if (SendMessageW( focus, WM_GETDLGCODE, 0, 0 ) & DLGC_HASSETSEL)
+ SendMessageW( focus, EM_SETSEL, 0, MAXLONG );
SetFocus( focus );
+ }
}
//// ReactOS see 43396, Fixes setting focus on Open and Close dialogs to the FileName
edit control in OpenOffice.
//// This now breaks test_SaveRestoreFocus.
@@ -2021,7 +2025,7 @@
/*
- * @implemented Modified for ReactOS.
+ * @implemented Modified for ReactOS. Do not Port Sync!!!
*/
BOOL
WINAPI