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)
|
||||
{
|
||||
_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));
|
||||
|
|
Loading…
Reference in a new issue