credui: Set the focus to the username edit control.

This commit is contained in:
Rob Shearman 2007-01-26 19:53:54 +00:00 committed by Alexandre Julliard
parent 1ba20d3b8b
commit 4ca5d44ce5
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
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)