Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / August 2005

Tip: Looking for answers? Try searching our database.

Get a CommandBar in C++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cyan21 - 30 Aug 2005 11:25 GMT
hello,

I tried to get a commandbar with the FindControl method, but I didn't
manage to use it because I don't understand the parameters

FindControl( VARIANT type,  VARIANT id,  VARIANT tag, VARIANT visible)

could someone help me please ?

yann
Dmitry Streblechenko - 31 Aug 2005 05:45 GMT
FindControl will not return a command bar as far as I know.
Have you tried CommandBars.Item("Your Command Bar Caption")?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> hello,
>
[quoted text clipped - 6 lines]
>
> yann
cyan21 - 31 Aug 2005 14:11 GMT
I have the GetItem method that takes in parameter a variant which
represents , I suppose, its position in the container.

CCommmandBarsPtr GetItem(const _variant_t &Index)

I'm not sure its ID is the same that its position
Dmitry Streblechenko - 31 Aug 2005 19:02 GMT
It is either an integer (index) or a string (name).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

>I have the GetItem method that takes in parameter a variant which
> represents , I suppose, its position in the container.
>
> CCommmandBarsPtr GetItem(const _variant_t &Index)
>
> I'm not sure its ID is the same that its position
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.