dialog box: open folder : how to?

This is a discussion on dialog box: open folder : how to? within the C++ Programming forums, part of the General Programming Boards category; Hi! I'm just beginning C++ and api win 32 and I wanna create a "open folder" dialog box instead of ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    12

    dialog box: open folder : how to?

    Hi!
    I'm just beginning C++ and api win 32 and I wanna create a "open folder" dialog box instead of a "open file" one.
    So if I select a directory and push ok, dialog bix mustn't open the folder, but it must close and return the path. Could I use the OPENFILENAME structure or is there anything else?

    Xcuse my mistakes.. I'm french

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    open folder

    I know that there is an api call and there is actually some code on a website about this. Unfortunately I do not remember the website address or the api call. I know the api call is something like shOpenFolder...
    Anyway I had the same need a while back and actually created my own open folder dialog. If you want the code email me and I will zip the project and send it to you.
    My code consists of a tree control. I loaded the tree control with some recursive functions by using the CFileFind class and loading only the directories into the tree. It works swell.
    I have it at work so if you want the project I will send it to you monday. Email me at fzamora@vvm.com. I created my own folder icons and everything....
    I tested it at work and it actually finds all the drives to include the ones on the network and all the folders in those drives.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    3

    Opening folders

    I am trying to do the same thing. I would like to be able to choose a directory, like in Winzip, or something similar, and have the user click, and choose which directory to use.
    I have not been able to figure this out, using the various books, websites, etc.

    Any help would be appreciated.

    Matt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dialog box problem keeps haunting me
    By Bleech in forum Windows Programming
    Replies: 2
    Last Post: 08-23-2006, 02:12 AM
  2. Command to open the 'Open Dialog Box' found in most programs.
    By OmegaFirebolt in forum Windows Programming
    Replies: 5
    Last Post: 03-16-2003, 08:58 PM
  3. edit control in dialog box problems
    By Bajanine in forum Windows Programming
    Replies: 11
    Last Post: 11-11-2002, 06:55 PM
  4. Resize Dialog Box via Code :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 10-27-2002, 11:00 PM
  5. Context Menu & Dialog Box :: MFC
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 08-11-2002, 11:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21