Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VS2010 MPF: Including a menu group in another menu group.

$
0
0

Hi all,

I would like to dynamically include IDG_VS_CTXT_ITEM_SCC when my project is under source control.  Status of source control can be fetched from the ProjectNode itself, and the context menus are also controlled from the ProjectNode code.  IDG_VS_CTXT_ITEM_SCC is a group defined by Visual Studio, and it is automatically populated by whatever source control plugin is being used (from what I understand).

I would like to modify the ShowContextMenu code so that I can include any items in the IDG_VS_CTXT_ITEM_SCC.  I figured VS Isolated Shell would do this automatically, but it does not.  Is there a simple way to perform this action in C#?  I would expect there is a way to conditionally include a group to a menu.

The default menu that is used for an item in my project is IDM_VS_CTXT_ITEMNODE.  I've tried (without success) of simply modifying my ShowContextMenu method to use IDG_VS_CTXT_ITEM_SCC, but since it is a group (not a menu) it doesn't work.  The context menu won't even display.  Any hints/tips/tricks?

Thanks,

Giawa



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>