Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

IComboBox with dynamic contents

$
0
0
In ArcScene: I have implemented an IComboBox where the content changes:
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;
    }
}

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?

Viewing all articles
Browse latest Browse all 1374

Trending Articles