Explorar o código

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.
Iain Patterson %!s(int64=10) %!d(string=hai) anos
pai
achega
88007006e2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      gui.cpp

+ 2 - 0
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);