You could restrict the visibility of the affected menu items, toolbars to a
specific context GUID (in your ctc file). And from your code, you can than
activate/deactivate this context GUID:
- Query the service provider for the SID_SVsShellMonitorSelection
- on the resulting IVsMonitorSelection call GetCmdUIContextCookie
- by using the returned context UI cookie, on the IVsMonitorSelection call
SetCmdUIContext (activate = TRUE or FALSE) depending on the state.
Cheers,
Gabriel
> Now, I'm creating a VSPackage project, I want to hide some specific menus
> when my custome designer is inactive in the project. How can I do it ?
Joeliu - 23 Mar 2007 02:51 GMT
Thank you very much!
> You could restrict the visibility of the affected menu items, toolbars to
> a
[quoted text clipped - 10 lines]
>> Now, I'm creating a VSPackage project, I want to hide some specific menus
>> when my custome designer is inactive in the project. How can I do it ?