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
6c752aaf
Commit
6c752aaf
authored
Jun 01, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Update handling of the new subkey and new value menu items.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
576d300e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
framewnd.c
programs/regedit/framewnd.c
+8
-4
No files found.
programs/regedit/framewnd.c
View file @
6c752aaf
...
...
@@ -154,14 +154,18 @@ static void update_delete_and_rename_items(HMENU hMenu, WCHAR *keyName)
EnableMenuItem
(
hMenu
,
ID_EDIT_RENAME
,
state_r
|
MF_BYCOMMAND
);
}
static
void
update_
copy_keyname_item
(
HMENU
hMenu
,
WCHAR
*
keyName
)
static
void
update_
new_items_and_copy_keyname
(
HMENU
hMenu
,
WCHAR
*
keyName
)
{
unsigned
int
state
=
MF_ENABLED
;
unsigned
int
state
=
MF_ENABLED
,
i
;
unsigned
int
items
[]
=
{
ID_EDIT_NEW_KEY
,
ID_EDIT_NEW_STRINGVALUE
,
ID_EDIT_NEW_BINARYVALUE
,
ID_EDIT_NEW_DWORDVALUE
,
ID_EDIT_NEW_MULTI_STRINGVALUE
,
ID_EDIT_NEW_EXPANDVALUE
,
ID_EDIT_COPYKEYNAME
};
if
(
!
keyName
)
state
=
MF_GRAYED
;
EnableMenuItem
(
hMenu
,
ID_EDIT_COPYKEYNAME
,
state
|
MF_BYCOMMAND
);
for
(
i
=
0
;
i
<
COUNT_OF
(
items
);
i
++
)
EnableMenuItem
(
hMenu
,
items
[
i
],
state
|
MF_BYCOMMAND
);
}
static
void
UpdateMenuItems
(
HMENU
hMenu
)
{
...
...
@@ -180,7 +184,7 @@ static void UpdateMenuItems(HMENU hMenu) {
update_expand_or_collapse_item
(
hwndTV
,
selection
,
hMenu
);
EnableMenuItem
(
hMenu
,
ID_EDIT_MODIFY
,
(
bAllowEdit
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
update_delete_and_rename_items
(
hMenu
,
keyName
);
update_
copy_keyname_item
(
hMenu
,
keyName
);
update_
new_items_and_copy_keyname
(
hMenu
,
keyName
);
EnableMenuItem
(
hMenu
,
ID_FAVORITES_ADDTOFAVORITES
,
(
hRootKey
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_FAVORITES_REMOVEFAVORITE
,
(
GetMenuItemCount
(
hMenu
)
>
2
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
...
...
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