Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
plugins:vfs_plugins:exported_functions_reference:vfs_getdropmenu

VFS_GetDropMenu(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszFiles,
     LPVFSCONTEXTMENUDATA:lpwfdData,
     DWORD:dwEffects
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpszFiles

[in] A double null-terminated list of files that the context menu is being shown for.

lpwfdData

[in/out] Pointer to a VFSCONTEXTMENUDATA structure into which you place information about the context menu items you wish to add.

dwEffects

[in] Bitmask of qualifier keys held down when the drop took place.

DROPEFFECT_COPYControl key held down - "normal" action is to copy files
DROPEFFECT_MOVEShift key held down - "normal" action is to move files
DROPEFFECT_LINKAlt key held down - "normal" action is to create shortcuts
DROPEFFECT_NONENo qualifier keys held down

Return value

If you wish to add items to the context menu you must set the appropriate fields in VFSCONTEXTMENUDATA and return TRUE. If you do not want to add to the context menu you should return FALSE.

Description

The VFS_GetDropMenu function is called to allow your plugin to add its own items to the context menu shown when the user drags items with the right mouse button and drops them in your plugin's namespace.

Custom commands you add to the context menu will invoke your VFS_ContextVerb function when the user selects them. See the Context and Drop Menus section for more information on building your context menu.