Click to See Complete Forum and Search --> : DriveListBox in C++
Jop
May 6th, 2001, 01:27 PM
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
amac
May 11th, 2001, 04:38 PM
were you looking for the Common Dialog boxes or just that specific control?
KENNNY
May 13th, 2001, 04:47 PM
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.
Jop
May 20th, 2001, 07:13 AM
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!
parksie
May 20th, 2001, 08:28 AM
Use a ComboBoxEx.
Jop
May 23rd, 2001, 11:23 AM
Yeah I tried, but well ehrm when I added one, my Dialog didn't show up until I removed it from my dialog again :(
parksie
May 24th, 2001, 04:09 PM
Before you use CreateDialog or DialogBox, you need to use InitCommonControlsEx -- look in the PSDK for details coz I can't remember :(
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.