mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Now the menu item actions on start button should work. CORE-16544
This commit is contained in:
parent
7a17c7d9ad
commit
f156f9a137
3 changed files with 6 additions and 6 deletions
|
@ -272,7 +272,7 @@ CCopyToMenu::QueryContextMenu(HMENU hMenu,
|
|||
hMenu, indexMenu, idCmdFirst, idCmdLast, uFlags);
|
||||
|
||||
if (uFlags & (CMF_NOVERBS | CMF_VERBSONLY))
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, 0);
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, idCmdFirst);
|
||||
|
||||
m_idCmdFirst = m_idCmdLast = idCmdFirst;
|
||||
|
||||
|
@ -310,7 +310,7 @@ CCopyToMenu::QueryContextMenu(HMENU hMenu,
|
|||
++Count;
|
||||
}
|
||||
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, Count);
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, idCmdFirst + Count);
|
||||
}
|
||||
|
||||
HRESULT WINAPI
|
||||
|
|
|
@ -271,7 +271,7 @@ CMoveToMenu::QueryContextMenu(HMENU hMenu,
|
|||
hMenu, indexMenu, idCmdFirst, idCmdLast, uFlags);
|
||||
|
||||
if (uFlags & (CMF_NOVERBS | CMF_VERBSONLY))
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, 0);
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, idCmdFirst);
|
||||
|
||||
m_idCmdFirst = m_idCmdLast = idCmdFirst;
|
||||
|
||||
|
@ -314,7 +314,7 @@ CMoveToMenu::QueryContextMenu(HMENU hMenu,
|
|||
++Count;
|
||||
}
|
||||
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, Count);
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, idCmdFirst + Count);
|
||||
}
|
||||
|
||||
HRESULT WINAPI
|
||||
|
|
|
@ -296,7 +296,7 @@ CSendToMenu::QueryContextMenu(HMENU hMenu,
|
|||
hMenu, indexMenu, idCmdFirst, idCmdLast, uFlags);
|
||||
|
||||
if (uFlags & (CMF_NOVERBS | CMF_VERBSONLY))
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, 0);
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, idCmdFirst);
|
||||
|
||||
HMENU hSubMenu = CreateMenu();
|
||||
if (!hSubMenu)
|
||||
|
@ -327,7 +327,7 @@ CSendToMenu::QueryContextMenu(HMENU hMenu,
|
|||
m_hSubMenu = hSubMenu;
|
||||
DestroyMenu(hOldSubMenu);
|
||||
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, cItems);
|
||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, idCmdFirst + cItems);
|
||||
}
|
||||
|
||||
STDMETHODIMP
|
||||
|
|
Loading…
Reference in a new issue