GetOpenFileName() dialog box

This is a discussion on GetOpenFileName() dialog box within the Windows Programming forums, part of the Platform Specific Boards category; when using the GetOpenFileName() dialog, i've noticed that if the initial directory (even if one is not specified), is too ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    GetOpenFileName() dialog box

    when using the GetOpenFileName() dialog, i've noticed that if the initial directory (even if one is not specified), is too deep within a tree of subdirectories, there is a delay of a few seconds after the dialog is shown till when it starts responding to user interaction.

    For example, when i dont specify an initial directory, the current directory of my workspace is 6 subdirectories deep in a hierachy, and there is the delay. as well, if the initial directory is close to the top of the tree, but you go deeper by clicking on folders, the delay occurs once you get to that certain depth.

    Something very odd is that once this delay occurs, it never happens again in that particular dialog, and it can happen in any subdirectory that is deep enough in a hierachy.

    I believe this may be something to do with how deep the dialog caches the file allocation tables for the drive. if this is the case, can someone tell me how to change the caching behaviour? otherwise, what is the solution?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    I don't believe there is a solution, the same problem occurs when using windows explorer. You're right on why it occurs, but i'm sure if it was fixable in win 9x microsoft would have done it/found a way.

    To clarify, even if there is a solution, YOU can't fix it with your dialog, that part is handled by the windows code and there's nothing you can do about it.
    PHP and XML
    Let's talk about SAX

  3. #3
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    damn, dont you hate these one replies that end it all?
    "you cant do anything about it" just ruins it all for an ongoing thread :-D gotta love it
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 01:59 PM
  2. Parent of a BrowseForFolder dialog box
    By @nthony in forum Windows Programming
    Replies: 4
    Last Post: 01-08-2007, 01:54 PM
  3. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 07:00 PM
  4. Dialog Box & Property Sheet :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-01-2002, 01:33 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

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