J
JahMic
It seems outlook does some caching of buttons. Even if I remove
buttons from my add-in and reinstall, the old buttons show up.
Resetting the toolbar nukes them all but then on the next restart, all
the old buttons are there, how to get around that?
Also, I think it may be related, but try as I may, my button text is
not showing up. I am roughly creating my buttons like so:
pStandardBar = pInspector->CommandBars->GetItem("Standard");
Office::CommandBarControlsPtr pBarCtrls = pStandardBar->GetControls();
pButton = (Office::CommandBarControlPtr)(spBarCtrls->Add(
(long)Office::msoControlButton,
vtMissing,
vtMissing,
vtMissing,
true));
pButton->Caption = "My Button";
pButton->TooltipText = "My Button tooltip";
// trying...
pButton->PutCaption(OLESTR("My Button text again"));
// trying more...
_bstr_t bstrCaption(OLESTR("My Button text one more time"));
pButton->PutCaption(bstrCaption);
pButton->PutDescriptionText(bstrCaption);
Any ideas?
buttons from my add-in and reinstall, the old buttons show up.
Resetting the toolbar nukes them all but then on the next restart, all
the old buttons are there, how to get around that?
Also, I think it may be related, but try as I may, my button text is
not showing up. I am roughly creating my buttons like so:
pStandardBar = pInspector->CommandBars->GetItem("Standard");
Office::CommandBarControlsPtr pBarCtrls = pStandardBar->GetControls();
pButton = (Office::CommandBarControlPtr)(spBarCtrls->Add(
(long)Office::msoControlButton,
vtMissing,
vtMissing,
vtMissing,
true));
pButton->Caption = "My Button";
pButton->TooltipText = "My Button tooltip";
// trying...
pButton->PutCaption(OLESTR("My Button text again"));
// trying more...
_bstr_t bstrCaption(OLESTR("My Button text one more time"));
pButton->PutCaption(bstrCaption);
pButton->PutDescriptionText(bstrCaption);
Any ideas?