JCL Help:DisplayContextMenuPidl

From Project JEDI Wiki
Jump to navigationJump to search


Displays the context menu of a shell item.


 function DisplayContextMenuPidl(const Handle: THandle; const Folder: IShellFolder; Item: PItemIdList; Pos: TPoint): Boolean;


Parameters Description
const Handle: THandle Handle of the window to use as the parent for all windows displayed by this function.
const Folder: IShellFolder The parent folder of the specified item.
Item: PItemIdList The Item for which to display a context menu. Should be relative to Folder.
Pos: TPoint Position, in client coordinates relative to the window identified by Handle, of the top, left corner of the context menu.

Return Value

If the function succeeds the result is True, if it fails the result is False.


Displays the context menu of the item specified by Item at position Pos using window defined by Handle as the parent for the menu. Folder should be the parent folder of the specified Item, which should be relative to the folder. The function returns True on success on False on failure. Note that when the user selects an item from the menu, the action defined by that item is also executed.

See Also






Marcel van Brakel

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page