Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4b6b0fe6
Commit
4b6b0fe6
authored
Aug 08, 2011
by
Alexander Morozov
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Disable some buttons if a certificate is not selected.
parent
20d7bc95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
main.c
dlls/cryptui/main.c
+11
-12
No files found.
dlls/cryptui/main.c
View file @
4b6b0fe6
...
...
@@ -1164,20 +1164,19 @@ static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
break
;
case
LVN_ITEMCHANGED
:
{
NMITEMACTIVATE
*
nm
;
WCHAR
empty
[]
=
{
0
};
NMITEMACTIVATE
*
nm
=
(
NMITEMACTIVATE
*
)
lp
;
HWND
lv
=
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
);
int
numSelected
=
SendMessageW
(
lv
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
nm
=
(
NMITEMACTIVATE
*
)
lp
;
if
(
nm
->
uNewState
&
LVN_ITEMACTIVATE
)
{
int
numSelected
=
SendMessageW
(
lv
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_MGR_EXPORT
),
numSelected
>
0
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_MGR_REMOVE
),
numSelected
>
0
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_MGR_VIEW
),
numSelected
==
1
);
if
(
numSelected
==
1
)
cert_mgr_show_cert_usages
(
hwnd
,
nm
->
iItem
);
}
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_MGR_EXPORT
),
numSelected
>
0
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_MGR_REMOVE
),
numSelected
>
0
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_MGR_VIEW
),
numSelected
==
1
);
if
(
numSelected
==
1
)
cert_mgr_show_cert_usages
(
hwnd
,
nm
->
iItem
);
else
SendMessageW
(
GetDlgItem
(
hwnd
,
IDC_MGR_PURPOSES
),
WM_SETTEXT
,
0
,
(
LPARAM
)
empty
);
break
;
}
case
NM_DBLCLK
:
...
...
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