cryptui: Add a (empty) advanced dialog to the certificate manager dialog.
This commit is contained in:
parent
be1587ca50
commit
7675bf428a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue