Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b7afe174
Commit
b7afe174
authored
Dec 17, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Add a (empty) details page to the cert properties dialog.
parent
e7490ad0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
1 deletion
+95
-1
cryptui_En.rc
dlls/cryptui/cryptui_En.rc
+17
-0
cryptuires.h
dlls/cryptui/cryptuires.h
+7
-0
main.c
dlls/cryptui/main.c
+71
-1
No files found.
dlls/cryptui/cryptui_En.rc
View file @
b7afe174
...
...
@@ -82,6 +82,23 @@ BEGIN
PUSHBUTTON "Issuer &Statement", IDC_ISSUERSTATEMENT,177,216,70,14
END
IDD_DETAIL DIALOG DISCARDABLE 0, 0, 255, 236
CAPTION "Details"
STYLE WS_VISIBLE
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "&Show:", stc1, 6,12,40,14
COMBOBOX IDC_DETAIL_SELECT, 28,10,100,14,
CBS_DROPDOWNLIST|WS_BORDER|WS_VSCROLL|WS_TABSTOP
CONTROL "", IDC_DETAIL_LIST, "SysListView32",
LVS_REPORT|LVS_SINGLESEL|WS_CHILD|WS_VISIBLE|WS_TABSTOP|WS_BORDER,
6,28,241,100
CONTROL "", IDC_DETAIL_VALUE, "RichEdit20W",
ES_READONLY|ES_MULTILINE|WS_TABSTOP, 6,136,241,70
PUSHBUTTON "&Edit Properties...", IDC_EDITPROPERTIES,103,216,70,14
PUSHBUTTON "&Copy to File...", IDC_EXPORT,177,216,70,14
END
IDD_USERNOTICE DIALOG DISCARDABLE 0, 0, 255, 256
CAPTION "Disclaimer"
STYLE WS_VISIBLE
...
...
dlls/cryptui/cryptuires.h
View file @
b7afe174
...
...
@@ -60,6 +60,7 @@
#define IDS_PURPOSE_DS_EMAIL_REPLICATION 1125
#define IDD_GENERAL 100
#define IDD_DETAIL 101
#define IDD_USERNOTICE 103
#define IDB_CERT 201
...
...
@@ -75,6 +76,12 @@
#define IDC_ADDTOSTORE 2005
#define IDC_ISSUERSTATEMENT 2006
#define IDC_DETAIL_SELECT 2100
#define IDC_DETAIL_LIST 2101
#define IDC_DETAIL_VALUE 2102
#define IDC_EDITPROPERTIES 2103
#define IDC_EXPORT 2104
#define IDC_USERNOTICE 2300
#define IDC_CPS 2301
...
...
dlls/cryptui/main.c
View file @
b7afe174
...
...
@@ -1001,6 +1001,70 @@ static void init_general_page(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo,
page
->
lParam
=
(
LPARAM
)
pCertViewInfo
;
}
struct
detail_data
{
PCCRYPTUI_VIEWCERTIFICATE_STRUCTW
pCertViewInfo
;
BOOL
*
pfPropertiesChanged
;
};
static
LRESULT
CALLBACK
detail_dlg_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
PROPSHEETPAGEW
*
page
;
struct
detail_data
*
data
;
TRACE
(
"(%p, %08x, %08lx, %08lx)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
switch
(
msg
)
{
case
WM_INITDIALOG
:
page
=
(
PROPSHEETPAGEW
*
)
lp
;
data
=
(
struct
detail_data
*
)
page
->
lParam
;
FIXME
(
"add cert details
\n
"
);
if
(
!
(
data
->
pCertViewInfo
->
dwFlags
&
CRYPTUI_ENABLE_EDITPROPERTIES
))
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_EDITPROPERTIES
),
FALSE
);
if
(
data
->
pCertViewInfo
->
dwFlags
&
CRYPTUI_DISABLE_EXPORT
)
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_EXPORT
),
FALSE
);
break
;
case
WM_COMMAND
:
switch
(
wp
)
{
case
IDC_EXPORT
:
FIXME
(
"call CryptUIWizExport
\n
"
);
break
;
case
IDC_EDITPROPERTIES
:
FIXME
(
"show edit properties dialog
\n
"
);
break
;
}
break
;
}
return
0
;
}
static
BOOL
init_detail_page
(
PCCRYPTUI_VIEWCERTIFICATE_STRUCTW
pCertViewInfo
,
BOOL
*
pfPropertiesChanged
,
PROPSHEETPAGEW
*
page
)
{
BOOL
ret
;
struct
detail_data
*
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
detail_data
));
if
(
data
)
{
data
->
pCertViewInfo
=
pCertViewInfo
;
data
->
pfPropertiesChanged
=
pfPropertiesChanged
;
memset
(
page
,
0
,
sizeof
(
PROPSHEETPAGEW
));
page
->
dwSize
=
sizeof
(
PROPSHEETPAGEW
);
page
->
hInstance
=
hInstance
;
page
->
u
.
pszTemplate
=
MAKEINTRESOURCEW
(
IDD_DETAIL
);
page
->
pfnDlgProc
=
detail_dlg_proc
;
page
->
lParam
=
(
LPARAM
)
data
;
ret
=
TRUE
;
}
else
ret
=
FALSE
;
return
ret
;
}
static
int
CALLBACK
cert_prop_sheet_proc
(
HWND
hwnd
,
UINT
msg
,
LPARAM
lp
)
{
RECT
rc
;
...
...
@@ -1040,7 +1104,7 @@ static BOOL show_cert_dialog(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo,
nPages
=
pCertViewInfo
->
cPropSheetPages
+
1
;
/* one for the General tab */
if
(
!
(
pCertViewInfo
->
dwFlags
&
CRYPTUI_HIDE_DETAILPAGE
))
FIXME
(
"show detail page
\n
"
)
;
nPages
++
;
if
(
!
(
pCertViewInfo
->
dwFlags
&
CRYPTUI_HIDE_HIERARCHYPAGE
))
FIXME
(
"show hierarchy page
\n
"
);
pages
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nPages
*
sizeof
(
PROPSHEETPAGEW
));
...
...
@@ -1059,6 +1123,12 @@ static BOOL show_cert_dialog(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo,
else
hdr
.
pszCaption
=
MAKEINTRESOURCEW
(
IDS_CERTIFICATE
);
init_general_page
(
pCertViewInfo
,
&
pages
[
hdr
.
nPages
++
]);
if
(
!
(
pCertViewInfo
->
dwFlags
&
CRYPTUI_HIDE_DETAILPAGE
))
{
if
(
init_detail_page
(
pCertViewInfo
,
pfPropertiesChanged
,
&
pages
[
hdr
.
nPages
]))
hdr
.
nPages
++
;
}
/* Copy each additional page, and create the init dialog struct for it
*/
if
(
pCertViewInfo
->
cPropSheetPages
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment