When implementing the context menu shell extension using the IExecuteCommand approach (as described in this blog post ), how can this menu option be grayed out?
eg. Suppose a shell extension offers some menu options, and some of them should be grayed out based on some state and conditions that calculate the shell extension, for example: if the user right-clicks on a file, and the shell extension detects that this file has some specified properties, some parameters of the shell extension context menu should be grayed out.
How to do it using IExecuteCommand ?
Or should a different Windows Shell COM interface be used for this?
c ++ windows shell winapi contextmenu
Mr.C64
source share