Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Combo Boxes

Status
Not open for further replies.

LuisEnrique

Programmer
Nov 15, 2001
10
0
0
US
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,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top