-
DriveListBox in C++
Ok guys, long time no see :D here i am with a question,
is there a way (via api or in a dialog) to display a control similar to the 'DriveListBox' in the Common Dialog (Open & Save As...)
you know? with those cool icons next to them :D
Sure I can enumerate the Drives, but I can't make it with the icons...
maybe there's some pre-made API thing??
Thanks,
Jop
-
were you looking for the Common Dialog boxes or just that specific control?
-
i think he means the combo box at the top of the common dialog, the one that displays all your drives and your desktop folders in it.
Well..you can fill a combo box with drives by sending the CB_DIR message to it, look in MSDN for details.
But I dunno about the icons; look in the Shell bit of MSDN for that - it tends to contain the "cool" controls like listview, and probably that.
-
Yep I was talking about the thing on top of the Save As... dialog ;)
I guess there isn't a seperate control for that so I'll have to make an owner-drawn ComboBox, that'll work...
thanx for the attention though!
-
-
Yeah I tried, but well ehrm when I added one, my Dialog didn't show up until I removed it from my dialog again :(
-
Before you use CreateDialog or DialogBox, you need to use InitCommonControlsEx -- look in the PSDK for details coz I can't remember :(