Hugh McMaster : regedit: Never disable the 'Find' and 'Find Next' menu items.
Alexandre Julliard
julliard at winehq.org
Wed May 31 16:20:17 CDT 2017
Module: wine
Branch: master
Commit: 948278cb7b517e84fb67e2ba180109412aac1219
URL: http://source.winehq.org/git/wine.git/?a=commit;h=948278cb7b517e84fb67e2ba180109412aac1219
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Wed May 31 13:07:05 2017 +0000
regedit: Never disable the 'Find' and 'Find Next' menu items.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/regedit/framewnd.c | 2 --
programs/regedit/regedit.rc | 6 +++---
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index 8e9f604..3fd048b 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -146,8 +146,6 @@ static void UpdateMenuItems(HMENU hMenu) {
}
update_expand_or_collapse_item(hwndTV, selection, hMenu);
- EnableMenuItem(hMenu, ID_EDIT_FIND, MF_ENABLED | MF_BYCOMMAND);
- EnableMenuItem(hMenu, ID_EDIT_FINDNEXT, MF_ENABLED | MF_BYCOMMAND);
EnableMenuItem(hMenu, ID_EDIT_MODIFY, (bAllowEdit ? MF_ENABLED : MF_GRAYED) | MF_BYCOMMAND);
EnableMenuItem(hMenu, ID_EDIT_DELETE, (bAllowEdit ? MF_ENABLED : MF_GRAYED) | MF_BYCOMMAND);
EnableMenuItem(hMenu, ID_EDIT_RENAME, (bAllowEdit ? MF_ENABLED : MF_GRAYED) | MF_BYCOMMAND);
diff --git a/programs/regedit/regedit.rc b/programs/regedit/regedit.rc
index d711c2c..d7ba600 100644
--- a/programs/regedit/regedit.rc
+++ b/programs/regedit/regedit.rc
@@ -59,8 +59,8 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "&Copy Key Name", ID_EDIT_COPYKEYNAME
MENUITEM SEPARATOR
- MENUITEM "&Find...\tCtrl+F", ID_EDIT_FIND, GRAYED
- MENUITEM "Find Ne&xt\tF3", ID_EDIT_FINDNEXT, GRAYED
+ MENUITEM "&Find...\tCtrl+F", ID_EDIT_FIND
+ MENUITEM "Find Ne&xt\tF3", ID_EDIT_FINDNEXT
END
POPUP "&View"
BEGIN
@@ -105,7 +105,7 @@ BEGIN
MENUITEM "&Multi-String Value", ID_EDIT_NEW_MULTI_STRINGVALUE
MENUITEM "&Expandable String Value", ID_EDIT_NEW_EXPANDVALUE
END
- MENUITEM "&Find...\tCtrl+F", ID_EDIT_FIND, GRAYED
+ MENUITEM "&Find...\tCtrl+F", ID_EDIT_FIND
MENUITEM SEPARATOR
MENUITEM "&Delete\tDel", ID_EDIT_DELETE
MENUITEM "&Rename\tF2", ID_EDIT_RENAME
More information about the wine-cvs
mailing list