credui: Override the default banner if the caller specifies one to CredUIPromptForCredentialsW.

This commit is contained in:
Rob Shearman 2007-11-18 21:08:39 +00:00 committed by Alexandre Julliard
parent 8a15423ab7
commit 0937f999f4
1 changed files with 5 additions and 0 deletions

View File

@ -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