Fix initial focus.
[nssm.git] / gui.cpp
diff --git a/gui.cpp b/gui.cpp
index e28c044..2642ad1 100644 (file)
--- a/gui.cpp
+++ b/gui.cpp
@@ -435,6 +435,8 @@ INT_PTR CALLBACK install_dlg(HWND window, UINT message, WPARAM w, LPARAM l) {
   switch (message) {\r
     /* Creating the dialogue */\r
     case WM_INITDIALOG:\r
+      SetFocus(GetDlgItem(window, IDC_NAME));\r
+\r
       HWND tabs;\r
       HWND combo;\r
       tabs = GetDlgItem(window, IDC_TAB1);\r