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
ef8d6d8a
Commit
ef8d6d8a
authored
Dec 18, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Toggle a usage when it's clicked.
parent
a958c27c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
main.c
dlls/cryptui/main.c
+37
-0
No files found.
dlls/cryptui/main.c
View file @
ef8d6d8a
...
@@ -1967,6 +1967,28 @@ static void set_general_cert_properties(HWND hwnd, struct detail_data *data)
...
@@ -1967,6 +1967,28 @@ static void set_general_cert_properties(HWND hwnd, struct detail_data *data)
show_cert_usages
(
hwnd
,
data
);
show_cert_usages
(
hwnd
,
data
);
}
}
static
void
toggle_usage
(
HWND
hwnd
,
int
iItem
)
{
LVITEMW
item
;
int
res
;
HWND
lv
=
GetDlgItem
(
hwnd
,
IDC_CERTIFICATE_USAGES
);
item
.
mask
=
LVIF_STATE
;
item
.
iItem
=
iItem
;
item
.
iSubItem
=
0
;
item
.
stateMask
=
LVIS_STATEIMAGEMASK
;
res
=
SendMessageW
(
lv
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
item
);
if
(
res
)
{
int
state
=
item
.
state
>>
12
;
item
.
state
=
INDEXTOSTATEIMAGEMASK
(
state
==
CheckBitmapIndexChecked
?
CheckBitmapIndexUnchecked
:
CheckBitmapIndexChecked
);
SendMessageW
(
lv
,
LVM_SETITEMSTATE
,
iItem
,
(
LPARAM
)
&
item
);
}
}
#define MAX_FRIENDLY_NAME 40
#define MAX_FRIENDLY_NAME 40
#define MAX_DESCRIPTION 255
#define MAX_DESCRIPTION 255
...
@@ -1994,6 +2016,21 @@ static LRESULT CALLBACK cert_properties_general_dlg_proc(HWND hwnd, UINT msg,
...
@@ -1994,6 +2016,21 @@ static LRESULT CALLBACK cert_properties_general_dlg_proc(HWND hwnd, UINT msg,
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
break
;
break
;
}
}
case
WM_NOTIFY
:
{
NMHDR
*
hdr
=
(
NMHDR
*
)
lp
;
NMITEMACTIVATE
*
nm
;
switch
(
hdr
->
code
)
{
case
NM_CLICK
:
nm
=
(
NMITEMACTIVATE
*
)
lp
;
toggle_usage
(
hwnd
,
nm
->
iItem
);
SendMessageW
(
GetParent
(
hwnd
),
PSM_CHANGED
,
(
WPARAM
)
hwnd
,
0
);
break
;
}
break
;
}
case
WM_COMMAND
:
case
WM_COMMAND
:
switch
(
HIWORD
(
wp
))
switch
(
HIWORD
(
wp
))
{
{
...
...
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