Adding Cascading menus to VS Menus

Ive been at this all day long and cannot seem to get anything working. All I want to do is add a menu to the tools menu and a sub menu with a couple of items on it. Following another thread at CodeCommentshttp://www.codecomments.com/Visual_Studio_Extensibility/message477770.html
I ended up with this in my ctc file. And still no menusSad.

I would have expected
Tools->A Menu->Logging
->Generate Support Bundle

TIA
-dw


CMDS_SECTION guidSQLOptimizerPkg

MENUS_BEGIN

// NewMenu Relative to Group Priority Type Name Text

guidSQLOptimizerMenuSet:mnuSqlOptimizer, guidSQLOptimizerCmdSet:cmdgToolsGroup, 0x0090, AlwaysCreate , "A Menu", "A Menu";

MENUS_END

NEWGROUPS_BEGIN

// NewGroup Parent Group Priority

guidSQLOptimizerCmdSet:cmdgToolsGroup, guidSHLMainMenu:IDM_VS_TOOL_MAINMENU, 0x0600;

guidSQLOptimizerCmdSet:cmdgToolsCommands, guidSQLOptimizerCmdSet:cmdgToolsCommands, 0x0100;

NEWGROUPS_END

BUTTONS_BEGIN

// Command Parent Group Priority Image Type Visibility Text

// Menu Commands

guidSQLOptimizerCmdSet:cmdidLogging, guidSQLOptimizerCmdSet:0, 0x0200, OI_NOICON, BUTTON, VIS_DEF , "&Logging";

guidSQLOptimizerCmdSet:cmdidSupportBundle, guidSQLOptimizerCmdSet:0, 0x0201, OI_NOICON, BUTTON, VIS_DEF , "Generate &Support Bundle";

BUTTONS_END

BITMAPS_BEGIN

BITMAPS_END

CMDS_END

CMDUSED_SECTION

CMDUSED_END

CMDPLACEMENT_SECTION

// Command Group Priority

guidSQLOptimizerCmdSet:cmdidLogging, guidSHLMainMenu:cmdgToolsCommands, 0x0200;

guidSQLOptimizerCmdSet:cmdidSupportBundle, guidSHLMainMenu:cmdgToolsCommands, 0x0201;

guidSQLOptimizerCmdSet:cmdgToolsCommands guidSQLOptimizerCmdSet:cmdgToolsGroup, 0x0010;

CMDPLACEMENT_END


[3391 byte] By [DavidWilson] at [2008-3-3]
# 1
Ok, I solved this myself.
3 Problems.
1) The Commands needed the menu text parameter (after the button text)
2) the Cmdplacement had the wrong guids
3) ToolsGroup should have been created with guidSHLMainMenu:IDM_VS_MENU_TOOLS

DavidWilson at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...

Visual Studio

Site Classified