From: Iain Patterson Date: Fri, 22 Nov 2013 13:40:17 +0000 (+0000) Subject: Fix initial focus. X-Git-Tag: v2.19~3 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=88007006e2caf2c9f33c4099c0b04e3a806498aa;p=nssm.git Fix initial focus. Ensure that the service name field has the initial input focus. It already did for the install dialogue but didn't in the remove dialogue. --- diff --git a/gui.cpp b/gui.cpp index e28c044..2642ad1 100644 --- 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) { /* Creating the dialogue */ case WM_INITDIALOG: + SetFocus(GetDlgItem(window, IDC_NAME)); + HWND tabs; HWND combo; tabs = GetDlgItem(window, IDC_TAB1);