Christoph_vW: regedit: make "modify" to default menu entry (bug #840)
Modified: trunk/reactos/subsys/system/regedit/main.c
_____
Modified: trunk/reactos/subsys/system/regedit/main.c
--- trunk/reactos/subsys/system/regedit/main.c 2005-09-29 03:07:26 UTC
(rev 18149)
+++ trunk/reactos/subsys/system/regedit/main.c 2005-09-29 03:33:28 UTC
(rev 18150)
@@ -118,12 +118,13 @@
/* 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 @@
}
}
+ if(hEditMenu != NULL)
+ SetMenuDefaultItem(hEditMenu, ID_EDIT_MODIFY, MF_BYCOMMAND);
+
nClipboardFormat = RegisterClipboardFormat(strClipboardFormat);
/* if (nClipboardFormat == 0) {
DWORD dwError = GetLastError();