C++ Code wanted for Device List

Complete

OSNN Addict
Joined
25 Aug 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
2 Feb 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
25 Aug 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 forum posts

Latest profile posts

Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
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 coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
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!

Forum statistics

Threads
61,997
Messages
673,414
Members
5,591
Latest member
nodee