LuisEnrique
Programmer
Hello:
I need help with Combo boxes. I have a combo box in a dialog and I want to fill the combo box with some filenames of a specified directory. Then, after filling the combo box, I'm disabling it (it can be enable by a check box in the same dialog). The program complies and runs, and when I load the dialog with the combo box, when I click the check box to enable the combo box, there is nothing in it. This is the code snipet that I have in the ::OnInitDialog() event:
::SetCurrentDirectory(_T("C:\\sounds");
m_cbo.ResetContent();
m_cbo.Dir(DDL_DIRECTORY,_T("*.wav");
m_cbo.EnableWindow(FALSE);
Is there something that I'm missing inthe combo box? What can I do to solve this? Any answer is more than welcome.
Best regards,
I need help with Combo boxes. I have a combo box in a dialog and I want to fill the combo box with some filenames of a specified directory. Then, after filling the combo box, I'm disabling it (it can be enable by a check box in the same dialog). The program complies and runs, and when I load the dialog with the combo box, when I click the check box to enable the combo box, there is nothing in it. This is the code snipet that I have in the ::OnInitDialog() event:
::SetCurrentDirectory(_T("C:\\sounds");
m_cbo.ResetContent();
m_cbo.Dir(DDL_DIRECTORY,_T("*.wav");
m_cbo.EnableWindow(FALSE);
Is there something that I'm missing inthe combo box? What can I do to solve this? Any answer is more than welcome.
Best regards,