Results 1 to 7 of 7

Thread: DriveListBox in C++

  1. #1

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    DriveListBox in C++

    Ok guys, long time no see 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
    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
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  2. #2
    amac
    Guest
    were you looking for the Common Dialog boxes or just that specific control?

  3. #3
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    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.
    buzzwords are the language of fools

  4. #4

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Use a ComboBoxEx.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Yeah I tried, but well ehrm when I added one, my Dialog didn't show up until I removed it from my dialog again
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Before you use CreateDialog or DialogBox, you need to use InitCommonControlsEx -- look in the PSDK for details coz I can't remember
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width