In ArcScene: I have implemented an IComboBox where the content changes:
The method IComboBox::get_Width unforunately seems to be called only when the IComboBox is created. How do I tell Arc that the content of the combo box has changed and that is must call IComboBox::get_Width again and update the GUI accordingly?
Code:
void MyComboBox::updateComboBox()
{
std::vector<CComBSTR> comboBoxItems;
getComboBoxItems(comboBoxItems);
long cookie;
std::vector<CComBSTR>::iterator it;
for(it = comboBoxItems.begin(); it != comboBoxItems.end(); it++)
{
m_comboBoxHook->Add(*it,&cookie); // IComboBoxHookPtr m_comboBoxHook;
}
}