- remove debugging msgbox

- fix default menu item state

svn path=/trunk/; revision=35097
This commit is contained in:
Johannes Anderwald 2008-08-04 13:47:11 +00:00
parent 578b10c107
commit 65c33891f6

View file

@ -1187,11 +1187,11 @@ static HRESULT WINAPI ICPanel_IContextMenu2_QueryContextMenu(
{
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';
_InsertMenuItem(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_STRING, szBuffer, MFS_DEFAULT);
_InsertMenuItem(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_STRING, szBuffer, MFS_ENABLED);
Count++;
}
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, Count);
@ -1205,13 +1205,9 @@ static HRESULT WINAPI ICPanel_IContextMenu2_InvokeCommand(
IContextMenu2 *iface,
LPCMINVOKECOMMANDINFO lpcmi)
{
WCHAR szBuffer[100];
SHELLEXECUTEINFOW sei;
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))
{
ZeroMemory(&sei, sizeof(sei));