comdlg32: Initially focus filename text box.

Vincent Povirk madewokherd at gmail.com
Thu Nov 5 14:35:00 CST 2015


-------------- next part --------------
From 0dfc1cffe8c7c12e7ba865370a95e20c1ab6ef95 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 5 Nov 2015 14:23:26 -0600
Subject: [PATCH 2/2] comdlg32: Initially focus filename text box.

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
---
 dlls/comdlg32/itemdlg.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c
index d66655a..f9a7707 100644
--- a/dlls/comdlg32/itemdlg.c
+++ b/dlls/comdlg32/itemdlg.c
@@ -2065,7 +2065,10 @@ static LRESULT on_wm_initdialog(HWND hwnd, LPARAM lParam)
     if(This->filterspec_count)
         events_OnTypeChange(This);
 
-    return TRUE;
+    if ((hitem = GetDlgItem(This->dlg_hwnd, IDC_FILENAME)))
+        SetFocus(hitem);
+
+    return FALSE;
 }
 
 static LRESULT on_wm_size(FileDialogImpl *This)
-- 
2.1.4



More information about the wine-patches mailing list