Rob Shearman : credui: Override the default banner if the caller specifies one to CredUIPromptForCredentialsW .
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 08:19:48 CST 2007
Module: wine
Branch: master
Commit: 0937f999f4eb69c517e159bbde0d4503a5e1c928
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0937f999f4eb69c517e159bbde0d4503a5e1c928
Author: Rob Shearman <rob at codeweavers.com>
Date: Sun Nov 18 21:08:39 2007 +0000
credui: Override the default banner if the caller specifies one to CredUIPromptForCredentialsW.
---
dlls/credui/credui_main.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c
index e61eac8..15da5f0 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
More information about the wine-cvs
mailing list