Yakoo11
October 25th, 1999, 06:28 PM
How would I go about displaying folder names of the C Drive in a CComboBox.
I have been looking around for hours and have found no help.
Thanks
I have been looking around for hours and have found no help.
Thanks
|
Click to See Complete Forum and Search --> : Directory Folders Yakoo11 October 25th, 1999, 06:28 PM How would I go about displaying folder names of the C Drive in a CComboBox. I have been looking around for hours and have found no help. Thanks Saeed October 31st, 1999, 06:56 PM Not clear. Two issues here and i m not sure which one you are having proble with. Is it populating the combobox? m_pCombo = new CComboBox(); m_pCombo->SubclassDlgItem(IDC_COMBO , this); ... for(all your elements of i) m_pCombo->AddString(szdir[i]); ... //and to see which row has been selected int index=m_pCombo->GetCurSel(); or is it fetching the Directory names? then you need to explain more .......... Saeed October 31st, 1999, 06:58 PM Not clear. Two issues here and i m not sure which one you are having proble with. Is it populating the combobox? m_pCombo = new CComboBox(); m_pCombo->SubclassDlgItem(IDC_COMBO , this); for(all your elements of i) m_pCombo->AddString(szdir[i]); /*and to see which row has been selected*/ int index=m_pCombo->GetCurSel(); or is it fetching the Directory names? then you need to explain more [/ccode] Londo Molari November 1st, 1999, 10:32 AM Try looking at DlgDirList, not quite a combo box but close. Regards, James. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |