Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Enebling of the buttons

Geek News

Enebling of the buttons
"Radiohead" <sv_korolev[ at ]mail.ru> 2/15/2006 4:28:02 PM
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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net