From: Juan Lang Date: Thu, 8 Jan 2009 00:31:01 +0000 (-0800) Subject: cryptui: Add a (empty) advanced dialog to the certificate manager dialog. X-Git-Tag: wine-1.1.13~288 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=7675bf428a8c2b6fd6bf99a9b42182367f327a5c;p=wine%2Feterwine.git cryptui: Add a (empty) advanced dialog to the certificate manager dialog. --- diff --git a/dlls/cryptui/cryptui_En.rc b/dlls/cryptui/cryptui_En.rc index 49096abafa..5d2f89e32c 100644 --- a/dlls/cryptui/cryptui_En.rc +++ b/dlls/cryptui/cryptui_En.rc @@ -314,3 +314,18 @@ BEGIN PUSHBUTTON "&View...", IDC_MGR_VIEW, 269,218,51,14, WS_DISABLED PUSHBUTTON "&Close", IDCANCEL, 277,249,51,14, BS_DEFPUSHBUTTON END + +IDD_CERT_MGR_ADVANCED DIALOG DISCARDABLE 0,0,248,176 +CAPTION "Advanced Options" +FONT 8, "MS Shell Dlg" +BEGIN + GROUPBOX "Certificate purpose", grp1, 7,7,234,141, BS_GROUPBOX + LTEXT "Select one or more purposes to be listed when Advanced Purposes is selected.", + IDC_STATIC, 14,18,220,16 + LTEXT "&Certificate purposes:", IDC_STATIC, 14,41,90,12, WS_TABSTOP + CONTROL "", IDC_CERTIFICATE_USAGES,"SysListView32", + LVS_REPORT|LVS_NOCOLUMNHEADER|LVS_SINGLESEL|WS_CHILD|WS_VISIBLE|WS_TABSTOP|WS_BORDER, + 14,51,220,90 + PUSHBUTTON "OK", IDOK, 132,155,51,14, BS_DEFPUSHBUTTON + PUSHBUTTON "Cancel", IDCANCEL, 190,155,51,14 +END diff --git a/dlls/cryptui/cryptuires.h b/dlls/cryptui/cryptuires.h index f6127c278c..b582e26305 100644 --- a/dlls/cryptui/cryptuires.h +++ b/dlls/cryptui/cryptuires.h @@ -137,6 +137,7 @@ #define IDD_IMPORT_STORE 109 #define IDD_IMPORT_FINISH 110 #define IDD_CERT_MGR 111 +#define IDD_CERT_MGR_ADVANCED 112 #define IDB_SMALL_ICONS 200 #define IDB_CERT 201 diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c index 9f156c472f..428deee7be 100644 --- a/dlls/cryptui/main.c +++ b/dlls/cryptui/main.c @@ -298,6 +298,26 @@ static void refresh_store_certs(HWND hwnd) show_store_certs(hwnd, cert_mgr_current_store(hwnd)); } +static LRESULT CALLBACK cert_mgr_advanced_dlg_proc(HWND hwnd, UINT msg, + WPARAM wp, LPARAM lp) +{ + switch (msg) + { + case WM_COMMAND: + switch (wp) + { + case IDOK: + EndDialog(hwnd, IDOK); + break; + case IDCANCEL: + EndDialog(hwnd, IDCANCEL); + break; + } + break; + } + return 0; +} + static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) { @@ -351,6 +371,10 @@ static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp, case ((CBN_SELCHANGE << 16) | IDC_MGR_PURPOSE_SELECTION): refresh_store_certs(hwnd); break; + case IDC_MGR_ADVANCED: + DialogBoxW(hInstance, MAKEINTRESOURCEW(IDD_CERT_MGR_ADVANCED), hwnd, + cert_mgr_advanced_dlg_proc); + break; case IDCANCEL: free_certs(GetDlgItem(hwnd, IDC_MGR_CERTS)); close_stores(GetDlgItem(hwnd, IDC_MGR_STORES));