C++ Code wanted for Device List

Complete

OSNN Addict
Joined
Aug 25, 2005
Messages
94
What I am looking to do is to provide the user (who runs my program) with a list of devices that they can pick from. You can do this with an Open File dialog if you click on "My Computer". What I want to know is how I can set up the dialog before the user opens it to prsent this list. How would you do this in C++? Have you seen it done before?


I want one of two (or both) solutions.
#1) I already have a custom File Open dialog program written where I am able to make sure that the user selects a directory and is not allowed to input a filename. Now I just want to know how to set up this estantiated FileOpen class so that it will first come up with the "My Dialog" area showing.
OR
#2) I want to create a drop-down menu that only shows the devices for the user to pick from. In other words, just the C drive, the D drive, etc.
 

LordOfLA

Godlike!
Joined
Feb 2, 2004
Messages
7,026
thats a built in API function. Provided by the common controls ocx/dll.

I forget the function name though. The API docs should tell you though if you look up common controls.
 

Complete

OSNN Addict
Joined
Aug 25, 2005
Messages
94
thats a built in API function. Provided by the common controls ocx/dll.

I forget the function name though. The API docs should tell you though if you look up common controls.

Super. Like, SetMyComputerMode or something? I wonder there I could dig that up.

The control I have pictured here is made only after I click on the "My Computer" icon on the left side of the dialog box.

I am able to bring up the Open File Dialog class with the directory pointing to where the system gets this data from the hard drive (the users area) but the display does not look as it should or as I want it to. Instead, it displays a set of folders for Documets and other things.

And I like your avatar better than mine, by the way.
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
61,974
Messages
673,294
Members
89,042
Latest member
Pancake