Skip to content
Discussion options

You must be logged in to vote

The designer's right-click menus are regular command table menus, so you can parent your own group to them in your VSCommandTable.vsct. Right-clicking a control opens IDM_IF_CTXT_SELECTION (0x0500) and right-clicking the form itself opens IDM_IF_CTXT_CONTAINER (0x0501), both under the GUID {74D21312-2AEE-11d1-8BFB-00A0C90F26F7}; these match MenuCommands.SelectionMenu and ContainerMenu in the WinForms designer, and you can see the full definition in tools/VSSDK/inc/Menus.vsct inside the Microsoft.VSSDK.BuildTools package. For the sub menu, add a Menu of type Menu to your group, give it a group of its own and parent your buttons to that inner group (the CommandPlacement adds the same entry …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pkfox
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants