mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 18:02:05 +00:00
- remove debugging msgbox
- fix default menu item state svn path=/trunk/; revision=35097
This commit is contained in:
parent
578b10c107
commit
65c33891f6
1 changed files with 2 additions and 6 deletions
|
@ -1187,11 +1187,11 @@ static HRESULT WINAPI ICPanel_IContextMenu2_QueryContextMenu(
|
||||||
{
|
{
|
||||||
if (Count)
|
if (Count)
|
||||||
{
|
{
|
||||||
_InsertMenuItem(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_SEPARATOR, NULL, MFS_DEFAULT);
|
_InsertMenuItem(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_SEPARATOR, NULL, MFS_ENABLED);
|
||||||
}
|
}
|
||||||
szBuffer[(sizeof(szBuffer)/sizeof(char))-1] = L'\0';
|
szBuffer[(sizeof(szBuffer)/sizeof(char))-1] = L'\0';
|
||||||
|
|
||||||
_InsertMenuItem(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_STRING, szBuffer, MFS_DEFAULT);
|
_InsertMenuItem(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_STRING, szBuffer, MFS_ENABLED);
|
||||||
Count++;
|
Count++;
|
||||||
}
|
}
|
||||||
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, Count);
|
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, Count);
|
||||||
|
@ -1205,13 +1205,9 @@ static HRESULT WINAPI ICPanel_IContextMenu2_InvokeCommand(
|
||||||
IContextMenu2 *iface,
|
IContextMenu2 *iface,
|
||||||
LPCMINVOKECOMMANDINFO lpcmi)
|
LPCMINVOKECOMMANDINFO lpcmi)
|
||||||
{
|
{
|
||||||
WCHAR szBuffer[100];
|
|
||||||
SHELLEXECUTEINFOW sei;
|
SHELLEXECUTEINFOW sei;
|
||||||
ICPanelImpl *This = impl_from_IContextMenu(iface);
|
ICPanelImpl *This = impl_from_IContextMenu(iface);
|
||||||
|
|
||||||
sprintfW(szBuffer, L"verb %p\n", lpcmi->lpVerb);
|
|
||||||
MessageBoxW(NULL, szBuffer, L"invoke", MB_OK);
|
|
||||||
|
|
||||||
if (lpcmi->lpVerb == MAKEINTRESOURCE(1))
|
if (lpcmi->lpVerb == MAKEINTRESOURCE(1))
|
||||||
{
|
{
|
||||||
ZeroMemory(&sei, sizeof(sei));
|
ZeroMemory(&sei, sizeof(sei));
|
||||||
|
|
Loading…
Reference in a new issue