credui: Override the default banner if the caller specifies one to CredUIPromptForCredentialsW.
This commit is contained in:
parent
8a15423ab7
commit
0937f999f4
|
@ -183,6 +183,11 @@ static BOOL CredDialogInit(HWND hwndDlg, struct cred_dialog_params *params)
|
|||
HWND hwndPassword = GetDlgItem(hwndDlg, IDC_PASSWORD);
|
||||
|
||||
SetWindowLongPtrW(hwndDlg, DWLP_USER, (LONG_PTR)params);
|
||||
|
||||
if (params->hbmBanner)
|
||||
SendMessageW(GetDlgItem(hwndDlg, IDB_BANNER), STM_SETIMAGE,
|
||||
IMAGE_BITMAP, (LPARAM)params->hbmBanner);
|
||||
|
||||
if (params->pszMessageText)
|
||||
SetDlgItemTextW(hwndDlg, IDC_MESSAGE, params->pszMessageText);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue