ImageEn, unit iexWindowsFunctions

PopupSystemMenu


Declaration

function PopupSystemMenu(Handle: HWND; const Filename: String; x, y: integer): Boolean; overload;
function PopupSystemMenu(Handle: HWND; ssFileList: TStrings; x, y: integer): Boolean; overload;


Description

Displays the system menu for the specified files at position x,y. This menu is the same as that displayed when right-clicking a selection of files in Windows Explorer

Result is false if the item cannot be displayed, e.g. due to an invalid file selection.




Example

PopupSystemMenu(Form1.Handle, ssSelectedFiles, ClickPos.X, ClickPos.Y);