Office::CommandBarControl problem
-
Hi! It's me again! :) I'm trying to insert a DropdownButton in my Outlook plugin...a msoControlButtonDropdown button, but I just don't know how! Here is (a piece of)my code: CComVariant vToolBarType2(msoControlDropdown); CComPtr < Office::CommandBarControl> spNewBar; spNewBar = spBarControls->Add(vToolBarType,vEmpty,vEmpty,vEmpty,vShow); ATLASSERT(spNewBar2); The problem is that the Add Method only accepts as the first parameter msoControlButton, msoControlEdit, msoControlDropdown, msoControlComboBox, or msoControlPopup; and I want to use msoControlButtonDropdown. Any ideas how should I do this, or how should I go around it? As you see, the code is written in C++, but even if you have a VB sample, I guess it should do the trick. Thanks a lot, :rose: Doru K.