소스 검색

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 10 년 전
부모
커밋
88007006e2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);