How to access Windows shell context menu items?

前端 未结 3 1711
半阙折子戏
半阙折子戏 2020-12-16 01:35

In Windows Explorer, you right click on a file, a context menu shows up which contains built-in items like \'Send to...\' and/or 3rd party actions such as \'zip file with Wi

3条回答
  •  情深已故
    2020-12-16 02:27

    The key to obtain the Shell Context menu is use the IContextMenu interface.

    check this great article Shell context menu support for more details.

    UPDATE

    for delphi examples you can see the JclShell unit from the JEDI JCL (check the DisplayContextMenu function) and the ShellCtrls unit included in the samples folder of Delphi.

提交回复
热议问题