- desktop background menu has no view option, this option is only available when browsing the shell

svn path=/trunk/; revision=30163
This commit is contained in:
Johannes Anderwald 2007-11-05 11:07:57 +00:00
parent 6a390b34dc
commit 5aad5425f5

View file

@ -673,6 +673,12 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu(
{ {
InsertShellNewItems(mii.hSubMenu, 0x6000, 0x6000, This); InsertShellNewItems(mii.hSubMenu, 0x6000, 0x6000, This);
} }
if (This->bDesktop)
{
/* desktop menu has no view option */
DeleteMenu(hMenu, 0, MF_BYPOSITION);
DeleteMenu(hMenu, 0, MF_BYPOSITION);
}
TRACE("(%p)->returning 0x%x\n",This,hr); TRACE("(%p)->returning 0x%x\n",This,hr);
return hr; return hr;