credui: Set the focus to the username edit control.
This commit is contained in:
parent
1ba20d3b8b
commit
4ca5d44ce5
|
@ -73,7 +73,8 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
|
||||||
SetWindowLongPtrW(hwndDlg, DWLP_USER, (LONG_PTR)params);
|
SetWindowLongPtrW(hwndDlg, DWLP_USER, (LONG_PTR)params);
|
||||||
if (params->pszCaptionText)
|
if (params->pszCaptionText)
|
||||||
SetWindowTextW(hwndDlg, params->pszCaptionText);
|
SetWindowTextW(hwndDlg, params->pszCaptionText);
|
||||||
return TRUE;
|
SetFocus(GetDlgItem(hwndDlg, IDC_USERNAME));
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
switch (wParam)
|
switch (wParam)
|
||||||
|
|
Loading…
Reference in New Issue