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
Printable View
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
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 ..........
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]
Try looking at DlgDirList, not quite a combo box but close.
Regards,
James.