显示默认的右键菜单——Delphi [英] Show the default right-click menu - Delphi
本文介绍了显示默认的右键菜单——Delphi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含文件列表的列表框.我可以访问列表框中的 Windows 右键单击菜单以访问打开、属性、删除和重命名项目吗?
I have a Listbox which contain a list of files . can i access the Windows right-click menu in the listbox to access the open , properties , delete and rename items ?
推荐答案
Kermia 检查 JclShell
来自 JEDI JCL 库的单元,该单元内部存在一个名为 DisplayContextMenu
的函数,它显示与文件关联的上下文菜单.该函数封装了对IContextMenu接口的调用,让您的工作更轻松.
Kermia check the JclShell
unit from the JEDI JCL library, inside of this unit exist a function called DisplayContextMenu
which show the context menu associated to a file. this function encapsulate the calls to the IContextMenu interface and makes your work more easy.
function DisplayContextMenu(const Handle: HWND; const FileName: string;
Pos: TPoint): Boolean;
这篇关于显示默认的右键菜单——Delphi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文