Hello @Jojo Tang ,
The shell treats ECS_HIDDEN
the same as ECS_DISABLED
for context menu items added via IExplorerCommand
, where the menu item is disabled. An alternate approach is to implement a context menu handler, where the shell extension can decide whether to add an item to the menu in IContextMenu::QueryContextMenu
.
Thank you!
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.