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
a45c2484
Commit
a45c2484
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: Redraw purposes list based on purpose selection.
parent
0bb4f7e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
+37
-3
main.c
dlls/cryptui/main.c
+37
-3
No files found.
dlls/cryptui/main.c
View file @
a45c2484
...
...
@@ -1665,6 +1665,31 @@ static void redraw_states(HWND list, BOOL enabled)
}
}
typedef
enum
{
PurposeEnableAll
=
0
,
PurposeDisableAll
,
PurposeEnableSelected
}
PurposeSelection
;
static
void
select_purposes
(
HWND
hwnd
,
PurposeSelection
selection
)
{
HWND
lv
=
GetDlgItem
(
hwnd
,
IDC_CERTIFICATE_USAGES
);
switch
(
selection
)
{
case
PurposeEnableAll
:
case
PurposeDisableAll
:
EnableWindow
(
lv
,
FALSE
);
redraw_states
(
lv
,
FALSE
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_ADD_PURPOSE
),
FALSE
);
break
;
case
PurposeEnableSelected
:
EnableWindow
(
lv
,
TRUE
);
redraw_states
(
lv
,
TRUE
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_ADD_PURPOSE
),
TRUE
);
}
}
extern
BOOL
WINAPI
WTHelperGetKnownUsages
(
DWORD
action
,
PCCRYPT_OID_INFO
**
usages
);
...
...
@@ -1754,8 +1779,7 @@ static void show_cert_usages(HWND hwnd, struct detail_data *data)
WTHelperGetKnownUsages
(
2
,
&
usages
);
}
}
EnableWindow
(
lv
,
FALSE
);
redraw_states
(
lv
,
FALSE
);
select_purposes
(
hwnd
,
PurposeEnableAll
);
}
static
void
set_general_cert_properties
(
HWND
hwnd
,
struct
detail_data
*
data
)
...
...
@@ -1776,7 +1800,6 @@ static void set_general_cert_properties(HWND hwnd, struct detail_data *data)
HeapFree
(
GetProcessHeap
(),
0
,
str
);
}
show_cert_usages
(
hwnd
,
data
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_ADD_PURPOSE
),
FALSE
);
SendMessageW
(
GetDlgItem
(
hwnd
,
IDC_ENABLE_ALL_PURPOSES
),
BM_CLICK
,
0
,
0
);
}
...
...
@@ -1823,6 +1846,17 @@ static LRESULT CALLBACK cert_properties_general_dlg_proc(HWND hwnd, UINT msg,
ShowScrollBar
(
description
,
SB_VERT
,
lines
>
1
);
}
break
;
case
BN_CLICKED
:
switch
(
LOWORD
(
wp
))
{
case
IDC_ENABLE_ALL_PURPOSES
:
case
IDC_DISABLE_ALL_PURPOSES
:
case
IDC_ENABLE_SELECTED_PURPOSES
:
SendMessageW
(
GetParent
(
hwnd
),
PSM_CHANGED
,
(
WPARAM
)
hwnd
,
0
);
select_purposes
(
hwnd
,
LOWORD
(
wp
)
-
IDC_ENABLE_ALL_PURPOSES
);
break
;
}
break
;
}
break
;
}
...
...
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