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?
_help.png


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.
 
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.
 
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

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
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.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back