From 0937f999f4eb69c517e159bbde0d4503a5e1c928 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 18 Nov 2007 21:08:39 +0000 Subject: [PATCH] credui: Override the default banner if the caller specifies one to CredUIPromptForCredentialsW. --- dlls/credui/credui_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c index e61eac83a6f..15da5f0094f 100644 --- a/dlls/credui/credui_main.c +++ b/dlls/credui/credui_main.c @@ -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