New Menu Item within OutLook

L

Luis D Rojas

Does anybody know how to add a menu bar to the OutLook main menu ?
how can I do this. I´ve done it with a toolbar. So please any guide will be
helpfull

Best Regards
 
L

Luis D Rojas

One thing i forgot is to say i need the control below the new Option

Best Regards
 
H

Helmut Obertanner

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top