Enebling of the buttons

R

Radiohead

Hello, everyone!!!
I have a problem:
I have my C++ Addin for outlook. I have such a code
..............
Office::CommandBarControlsPtr pControls;
pMailCommandBar_->get_Controls(&pControls);
Office::CommandBarControlPtr pControl;

pControls->get_Item(CComVariant(2), &pControl);
pControl->put_Enabled((vVisible ? VARIANT_TRUE : VARIANT_FALSE));
......................
this code should to set enable\disable status to the buttons, but this
button dosen't refresh,
only after you put mouse on this button you can see the effect
(enable\disable).
Who should i write to have refreshed status of the buttons
 

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