Quote:
Originally Posted by shabbir
Yes its currently looks correct to me.

void CIDComboDemoDlg::OnSelchangeCombo1()
{
m_eFruitVal = (eEnumeratedFruit)m_combo.GetCurSelData();

switch (m_eFruitVal)
{
case eBanana:
for (int i=0;i < 20;i++)
{

m_combo1->AddString("YELLOW");break; //BUT PROGRAM HANG AFTER I SELECT "BANANA",
}
}
}


m_combo1->AddString("YELLOW");break //THIS ONE I LIKE TO INSERT AT 2ND COMBOBOX, BUT WILL HANG WILL HANG AT HERE!