[PATCH 1/3] credui: Set the focus to the username edit control.

Robert Shearman rob at codeweavers.com
Fri Jan 26 13:53:54 CST 2007


---
  dlls/credui/credui_main.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c
index 48ba132..6bd6330 100644
--- a/dlls/credui/credui_main.c
+++ b/dlls/credui/credui_main.c
@@ -73,7 +73,8 @@ static INT_PTR CALLBACK CredDialogProc(H
             SetWindowLongPtrW(hwndDlg, DWLP_USER, (LONG_PTR)params);
             if (params->pszCaptionText)
                 SetWindowTextW(hwndDlg, params->pszCaptionText);
-            return TRUE;
+            SetFocus(GetDlgItem(hwndDlg, IDC_USERNAME));
+            return FALSE;
         }
         case WM_COMMAND:
             switch (wParam)


More information about the wine-patches mailing list