Switch case in MFC
-
How to perform switch case in MFC (Not in dialog form)????
-
How to perform switch case in MFC (Not in dialog form)????
i'm quite sure you are not familiar with C++.
switch
statements are C++ statements, so, any libraries like MLC (Microsoft), OWL (Borland) or any other understandswitch
s the same way... the switch is a sort of if / else if /else statement... so what is your question exactly ?
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
i'm quite sure you are not familiar with C++.
switch
statements are C++ statements, so, any libraries like MLC (Microsoft), OWL (Borland) or any other understandswitch
s the same way... the switch is a sort of if / else if /else statement... so what is your question exactly ?
TOXCCT >>> GEII power
[toxcct][VisualCalc]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
-
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
-
How to perform switch case in MFC (Not in dialog form)????
The switch statement has nothing to do with MFC. It is a C construct.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow