Thread: Default directory for SHBrowseForFolder

  1. #1
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728

    Default directory for SHBrowseForFolder

    I'm using SHBrowseForFolder to allow the user to select a directory, is there a way so that when the dialog box opens it starts in a default directory? OpenFileName has a parameter that allows you to do this, but I don't see anything in the BrowseInfo struct except for pidlRoot which doesn't appear to let the user move up a directory if they choose to according to the definition.

  2. #2

  3. #3
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Thanks, that worked beautifully.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Utilizing another compiled program for a task.
    By kotoroshinoto in forum C Programming
    Replies: 6
    Last Post: 06-03-2008, 01:43 PM
  3. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  4. Set default directory with GetTempDir?
    By Bajanine in forum Windows Programming
    Replies: 2
    Last Post: 05-04-2003, 11:36 PM
  5. Default Directory
    By ski6ski in forum Windows Programming
    Replies: 0
    Last Post: 09-28-2001, 08:07 AM