void CLawMaterialView::OnSelchangeType() { m_combo=(CComboBox *)GetDlgItem(IDC_TYPE); m_eFruitVal = (eEnumeratedFruit)m_combo->GetCurSel(); switch (m_eFruitVal) { case 1:eRD; m_combo1=(CComboBox *)GetDlgItem(IDC_COMBO2); m_combo1->SetCurSel(0); m_combo1->ResetContent(); m_combo1->AddString("White ceramic rod BA80");// I want it from databse NOT add one by one. } From above code, is it Add a new value after select the 1st combobox, BUT how to have a value in combobox is from database???? Plz advise! Danny Gan
U
User 1607091
@User 1607091
Posts
-
Switch case in MFC -
Switch case in MFCHow to perform switch case in MFC (Not in dialog form)????
-
IntegrateHow to integrate SDK program with VC++ in MFC???? TQ!