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
 
Top