mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Christoph_vW: regedit: make "modify" to default menu entry (bug #840)
svn path=/trunk/; revision=18150
This commit is contained in:
parent
cb80311ddf
commit
033b930b16
1 changed files with 6 additions and 2 deletions
|
@ -118,12 +118,13 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||||
/* Initialize the Windows Common Controls DLL */
|
/* Initialize the Windows Common Controls DLL */
|
||||||
InitCommonControls();
|
InitCommonControls();
|
||||||
|
|
||||||
|
HMENU hEditMenu;
|
||||||
|
hEditMenu = GetSubMenu(hMenuFrame, 1);
|
||||||
|
|
||||||
AclUiAvailable = InitializeAclUiDll();
|
AclUiAvailable = InitializeAclUiDll();
|
||||||
if(!AclUiAvailable)
|
if(!AclUiAvailable)
|
||||||
{
|
{
|
||||||
HMENU hEditMenu;
|
|
||||||
/* hide the Edit/Permissions... menu entry */
|
/* hide the Edit/Permissions... menu entry */
|
||||||
hEditMenu = GetSubMenu(hMenuFrame, 1);
|
|
||||||
if(hEditMenu != NULL)
|
if(hEditMenu != NULL)
|
||||||
{
|
{
|
||||||
RemoveMenu(hEditMenu, ID_EDIT_PERMISSIONS, MF_BYCOMMAND);
|
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);
|
nClipboardFormat = RegisterClipboardFormat(strClipboardFormat);
|
||||||
/* if (nClipboardFormat == 0) {
|
/* if (nClipboardFormat == 0) {
|
||||||
DWORD dwError = GetLastError();
|
DWORD dwError = GetLastError();
|
||||||
|
|
Loading…
Reference in a new issue