Show the default right-click menu - Delphi

后端 未结 4 1643
你的背包
你的背包 2020-12-30 12:25

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 ?

4条回答
  •  梦谈多话
    2020-12-30 13:15

    Check the IContextMenu interface. But be aware that Windows shell doesn't identify its objects by filename - actually they could not be files. It uses a concatenation of ids, and you may need to get what item id list a file is assigend to before invoking some shell functions on it.

提交回复
热议问题