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
bb0eefb9
Commit
bb0eefb9
authored
May 21, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
May 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Allow modifying values of root keys.
parent
fed3a4ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
framewnd.c
programs/regedit/framewnd.c
+6
-6
No files found.
programs/regedit/framewnd.c
View file @
bb0eefb9
...
...
@@ -100,18 +100,18 @@ static void OnExitMenuLoop(HWND hWnd)
static
void
UpdateMenuItems
(
HMENU
hMenu
)
{
HWND
hwndTV
=
g_pChildWnd
->
hTreeWnd
;
BOOL
b
IsKeySelected
=
FALSE
;
BOOL
b
AllowEdit
=
FALSE
;
HKEY
hRootKey
=
NULL
;
LPCTSTR
keyName
;
keyName
=
GetItemPath
(
hwndTV
,
TreeView_GetSelection
(
hwndTV
),
&
hRootKey
);
if
(
keyName
&&
*
keyName
)
{
/* can't modify root key
s */
b
IsKeySelected
=
TRUE
;
if
(
GetFocus
()
!=
hwndTV
||
(
keyName
&&
*
keyName
))
{
/* can't modify root keys, but allow for their value
s */
b
AllowEdit
=
TRUE
;
}
EnableMenuItem
(
hMenu
,
ID_EDIT_FIND
,
MF_ENABLED
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_EDIT_FINDNEXT
,
MF_ENABLED
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_EDIT_MODIFY
,
(
b
IsKeySelected
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_EDIT_DELETE
,
(
b
IsKeySelected
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_EDIT_RENAME
,
(
b
IsKeySelected
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_EDIT_MODIFY
,
(
b
AllowEdit
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_EDIT_DELETE
,
(
b
AllowEdit
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
EnableMenuItem
(
hMenu
,
ID_EDIT_RENAME
,
(
b
AllowEdit
?
MF_ENABLED
:
MF_GRAYED
)
|
MF_BYCOMMAND
);
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