|
|
|
@ -84,7 +84,7 @@ BOOL CShellContextMenu::GetContextMenu (void ** ppContextMenu, int & iMenuType)
|
|
|
|
|
LPCONTEXTMENU icm1 = NULL;
|
|
|
|
|
|
|
|
|
|
if ( m_psfFolder==0 )
|
|
|
|
|
return FALSE;
|
|
|
|
|
return false;
|
|
|
|
|
// first we retrieve the normal IContextMenu interface (every object should have it)
|
|
|
|
|
m_psfFolder->GetUIObjectOf (NULL, nItems, (LPCITEMIDLIST *) m_pidlArray, IID_IContextMenu, NULL, (void**) &icm1);
|
|
|
|
|
|
|
|
|
@ -104,9 +104,9 @@ BOOL CShellContextMenu::GetContextMenu (void ** ppContextMenu, int & iMenuType)
|
|
|
|
|
} // redirect ppContextMenu to version 1 interface
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
return (FALSE); // something went wrong
|
|
|
|
|
return (false); // something went wrong
|
|
|
|
|
|
|
|
|
|
return (TRUE); // success
|
|
|
|
|
return (true); // success
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -133,7 +133,7 @@ LRESULT CALLBACK CShellContextMenu::HookWndProc(HWND hWnd, UINT message, WPARAM
|
|
|
|
|
g_IContext2->HandleMenuMsg (message, wParam, lParam);
|
|
|
|
|
else // version 3
|
|
|
|
|
g_IContext3->HandleMenuMsg (message, wParam, lParam);
|
|
|
|
|
return (message == WM_INITMENUPOPUP ? 0 : TRUE); // inform caller that we handled WM_INITPOPUPMENU by ourself
|
|
|
|
|
return (message == WM_INITMENUPOPUP ? 0 : true); // inform caller that we handled WM_INITPOPUPMENU by ourself
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
@ -279,7 +279,7 @@ void CShellContextMenu::SetObjects(const TQStringList &strList)
|
|
|
|
|
lpMalloc->Release ();
|
|
|
|
|
psfDesktop->Release ();
|
|
|
|
|
|
|
|
|
|
bDelete = TRUE; // indicates that m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
bDelete = true; // indicates that m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -310,7 +310,7 @@ void CShellContextMenu::SetObjects(LPITEMIDLIST /*pidl*/)
|
|
|
|
|
lpMalloc->Release();
|
|
|
|
|
|
|
|
|
|
nItems = 1;
|
|
|
|
|
bDelete = TRUE; // indicates that m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
bDelete = true; // indicates that m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -331,7 +331,7 @@ void CShellContextMenu::SetObjects(IShellFolder *psfFolder, LPITEMIDLIST pidlIte
|
|
|
|
|
m_pidlArray[0] = CopyPIDL (pidlItem);
|
|
|
|
|
|
|
|
|
|
nItems = 1;
|
|
|
|
|
bDelete = FALSE; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
bDelete = false; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CShellContextMenu::SetObjects(IShellFolder * psfFolder, LPITEMIDLIST *pidlArray, int nItemCount)
|
|
|
|
@ -351,7 +351,7 @@ void CShellContextMenu::SetObjects(IShellFolder * psfFolder, LPITEMIDLIST *pidlA
|
|
|
|
|
m_pidlArray[i] = CopyPIDL (pidlArray[i]);
|
|
|
|
|
|
|
|
|
|
nItems = nItemCount;
|
|
|
|
|
bDelete = FALSE; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
bDelete = false; // indicates wheter m_psfFolder should be deleted by CShellContextMenu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|