开发者

Windows explorer get list of selected items and pass it to another process

I have to create File/Folder management system. In which user can select multiple files/folder and from context menu execute an command. That command sends list of开发者_如何学编程 all selected files/folders list to invoke a process. So that, process can work on file/folder list. If process is running the context menu should not shown or greyed out.

I added context menu but can't find the way to disable it. How can I do all this? Any possible study link will help a lot?


Your IContextMenu::QueryContextMenu handler can apply whatever logic you desire to determine whether to show/hide a menu item, and if shown, whether it is enabled or disabled. Note, however, that in general, shell extensions should not be written in managed code due to CLR injection concerns.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜