开发者

AgentRansack's file list provides right-click file popup menu like Explorer; how can I do this in my own apps?

if I right-click on a file name in the search 开发者_如何学Cresults, it gives me the usual Explorer popup menu for a file, with options like Open, Edit, Properties, Share With, Send To. Just like what I get in Explorer itself. How did they do this? Can I do this in my own programs?


Check the How to host an IContextMenu series from oldnewthing. The seris not only deal with displaying the menu, but also shows how to handle different use cases such as property dialog, control or shift key down when menu item is selected, deal with context menu shell extensions, etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜