Hello Luis,
it's just the same.
In Outlook the MenuBar is also a CommandBar.
What Programminglanguage do you use ?
C# sample:
MSO.CommandBar menuBar = myExplorer.CommandBars["Menu Bar"];
myMainMenu = (MSO.CommandBarPopup) menuBar.Controls.Add
(MSO.MsoControlType.msoControlPopup, myMissing, myMissing,
menuBar.Controls.Count, true);
myMainMenu.Caption = "XConnect";
myMainMenu.Tag = myID.ToString ();
myButtonHome = (MSO.CommandBarButton) myMainMenu.Controls.Add
(MSO.MsoControlType.msoControlButton, myMissing, myMissing, myMissing,
true);
myButtonHome.Caption = "Home";
myButtonHome.Tag = myID.ToString ();
myButtonHome.Style = MSO.MsoButtonStyle.msoButtonIconAndCaption ;
myButtonHome.FaceId = 607;
myButtonSenderAddress = (MSO.CommandBarButton) myMainMenu.Controls.Add
(MSO.MsoControlType.msoControlButton, myMissing, myMissing, myMissing,
true);
myButtonSenderAddress.Caption = "Sender Address";
myButtonSenderAddress.Tag = myID.ToString ();
myButtonSenderAddress.Style = MSO.MsoButtonStyle.msoButtonIconAndCaption
;
myButtonSenderAddress.FaceId = 1757;
myButtonExportAttachments = (MSO.CommandBarButton)
myMainMenu.Controls.Add (MSO.MsoControlType.msoControlButton, myMissing,
myMissing, myMissing, true);
myButtonExportAttachments.Caption = "Export Attachments";
myButtonExportAttachments.Tag = myID.ToString ();
myButtonExportAttachments.Style =
MSO.MsoButtonStyle.msoButtonIconAndCaption ;
myButtonExportAttachments.FaceId = 777;
myButtonExportAttachments.BeginGroup = true;
myButtonAbout = (MSO.CommandBarButton) myMainMenu.Controls.Add
(MSO.MsoControlType.msoControlButton, myMissing, myMissing, myMissing,
true);
myButtonAbout.Caption = "About";
myButtonAbout.Tag = myID.ToString ();
myButtonAbout.Style = MSO.MsoButtonStyle.msoButtonIconAndCaption ;
myButtonAbout.FaceId = 487;
myButtonAbout.BeginGroup = true;
--
regards
Helmut Obertanner
Technical Consultant
Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web:
www.datalog.de
.... and IT works!