Thread: GetOpenFileName() won't show

  1. #1
    Registered User harryP's Avatar
    Join Date
    Sep 2002

    GetOpenFileName() won't show

    OK, I'm using the GetOpenFileName function to display the Open dialog box for a program I'm making. The problem is, the first time I try to bring up the box, it won't come up, it like...stays behind the main window. Then, every subsequent time I use it, it works. Any ideas how I can make it appear over the maine window EVERY time? I've thought of using ShowOwnedPopups and stuff, but I can't see how I'd work that in. The box comes up with the GetOpenFileName function call, so I can't put the ShowOwnedPopups beforehand, because beforehand, there aren't any popups, and I can't put it after the function call, because then the popup is already gone. Argh. Any ideas? Thanks.

    Draco dormiens nunquam titallandus.
    Console Graphics Library:

  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    It may be the way your doing it. The dialog should be displayed as a modal dialog not a modeless. Which it sounds like it is modeless.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 05-07-2009, 01:31 AM
  2. GetOpenFileName function for dir's?
    By willc0de4food in forum Windows Programming
    Replies: 3
    Last Post: 04-15-2006, 12:54 AM
  3. how to show the % sign and remove decimals?
    By seal in forum C Programming
    Replies: 5
    Last Post: 08-31-2005, 05:29 PM
  4. good show on PBS tonite
    By axon in forum A Brief History of
    Replies: 9
    Last Post: 09-15-2004, 10:49 PM
  5. Troubles with GetOpenFileName()
    By lyx in forum Windows Programming
    Replies: 13
    Last Post: 10-28-2003, 09:47 PM