How to show Windows Explorer context (right click) menu?

后端 未结 4 983
无人及你
无人及你 2020-12-10 08:50

I want to show the Windows Explorer context menu.

I don\'t want to add my application to it, I just want to display it inside my application.

4条回答
  •  执笔经年
    2020-12-10 09:33

    I found several samples that may help you. You're not likely to be able to do this with Qt alone, since the shell context menu is highly OS-specific; probably some Win32 calls will be needed also.

    • Use Shell ContextMenu in your applications
    • Explorer Shell Context Menu

    A Raymond Chen blog series "How to host an IContextMenu"

    And some non-C++ samples also:

    • C# File Browser
    • Shell context menu sample in C#

    And related SO questions:

    • How to access Windows shell context menu items?
    • How to obtain full shell context menu of right-click a folder background

提交回复
热议问题