Quote:
Originally Posted by shabbir
so are you asking at what event should you use the above code.
Yes, is it got this such thing? Can i do this?


oid CIDComboDemoDlg::OnSelchangeCombo1()
{

m_eFruitVal = (eEnumeratedFruit)m_combo.GetCurSelData();

switch (m_eFruitVal)
{
case eBanana: m_descriptionWnd.SetWindowText("Banana");

for (int i=0;i < 20;i++)
{

pmyComboBox->AddString("Malaysia");

}
break;

case eApple: m_descriptionWnd.SetWindowText("Apple");

for (int i=0;i < 20;i++)
{

pmyComboBox->AddString("Malaysia");

}
break;

Last edited by dannygan9; 27Dec2004 at 06:21..