Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add entries to "Look in" control of CFileDialog

Status
Not open for further replies.

SunnyFD

Programmer
May 8, 2002
1
CA
I have an application that can access (open/save) local files as well as files stored on a host using a special server that we wrote. Currently, I have the standard Windows open dialog (CFileDialog) for local files and a custom open dialog for my host files. I'd like to combine the 2 dialogs into one. The "Look in" control has a list of local drives but I'd like to add all the host names I have access to.

I have found a number of articles that show how to resize the dialog box, move existing controls and add new ones. Nothing on how to gain access to the combo box. Am I missing something obvious? Is it possible at all? All suggestions welcome!
 
Hi,

I don't know if if this helps you:
You can use SPY++ to get the Control ID of the ComboBox in the FileOpen Dialog.
With GetDlgItem() you can then get access to the ComboBox. From there you are on your own...

Branko
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top