Link to home
Start Free TrialLog in
Avatar of galneweinhaw
galneweinhaw

asked on

How to fill a List View Control using DlgDirList or DlgDirListComboBox?

How do I fill a List View Control using DlgDirList or DlgDirListComboBox?

I can fill a list box with this:

char szPath [255] = {"c:\\"};
int nResult = DlgDirList(szPath,IDC_LIST,IDC_DIRECTORY,DDL_DRIVES | DDL_DIRECTORY);

Can I do the same with a list view control?

thanks
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another thought.   You could also cheat.
Have a list or combo that is hidden.  Fill that as you  posted above.  Then loop throught the contents, get the string and use that as the item to insert into the list control.