Get a CommandBar in C++

C

cyan21

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
 
D

Dmitry Streblechenko

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
 
C

cyan21

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
 

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