From 033b930b16065aac99aeb5e766f0b876f96743ed Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Thu, 29 Sep 2005 03:33:28 +0000 Subject: [PATCH] Christoph_vW: regedit: make "modify" to default menu entry (bug #840) svn path=/trunk/; revision=18150 --- reactos/subsys/system/regedit/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/regedit/main.c b/reactos/subsys/system/regedit/main.c index f5c4683950e..94f76529c0a 100644 --- a/reactos/subsys/system/regedit/main.c +++ b/reactos/subsys/system/regedit/main.c @@ -118,12 +118,13 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) /* Initialize the Windows Common Controls DLL */ InitCommonControls(); + HMENU hEditMenu; + hEditMenu = GetSubMenu(hMenuFrame, 1); + AclUiAvailable = InitializeAclUiDll(); if(!AclUiAvailable) { - HMENU hEditMenu; /* hide the Edit/Permissions... menu entry */ - hEditMenu = GetSubMenu(hMenuFrame, 1); if(hEditMenu != NULL) { RemoveMenu(hEditMenu, ID_EDIT_PERMISSIONS, MF_BYCOMMAND); @@ -132,6 +133,9 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) } } + if(hEditMenu != NULL) + SetMenuDefaultItem(hEditMenu, ID_EDIT_MODIFY, MF_BYCOMMAND); + nClipboardFormat = RegisterClipboardFormat(strClipboardFormat); /* if (nClipboardFormat == 0) { DWORD dwError = GetLastError();