Problem with CComboBox
-
Hello I have a problem with CComboBox I use MSVS 6.0 I made a MFC application and i have create 4 Dialogs (New Class -> Form ) Now i design a CComboBox and I press ClassWizard and Add Variable IDC_COMBO -> m_Combo (CCombo control) when i type m_Combo.EnableWindow(FALSE) it works (become disable) but when i try to add a variable (m_Combo.AddString("asdads") ) Combo Box appears empty (i click on it and no options) any help ? :/
-
Hello I have a problem with CComboBox I use MSVS 6.0 I made a MFC application and i have create 4 Dialogs (New Class -> Form ) Now i design a CComboBox and I press ClassWizard and Add Variable IDC_COMBO -> m_Combo (CCombo control) when i type m_Combo.EnableWindow(FALSE) it works (become disable) but when i try to add a variable (m_Combo.AddString("asdads") ) Combo Box appears empty (i click on it and no options) any help ? :/
Maybe something went wrong in the class wizard, try to run your project in debug mode and also check the return value of AddString()... is it CB_ERR then something went wrong.
-
Maybe something went wrong in the class wizard, try to run your project in debug mode and also check the return value of AddString()... is it CB_ERR then something went wrong.
It was working correct :/ I just haven't resized the pop up area :/