#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    25
    Rep Power
    0

    How to create a "Loading, Please Wait" Screen (Win32 API)


    I have a program that has to load a lot of resources and files before it can show anything on the screen. Since this takes 5-10 seconds, I want it to display a "Loading, please wait" screen.

    What's the best way to do this? Currently I have it set up as a modeless dialog box that runs in a separate thread. But this has a problem: If I make it a child window of the main window, it isn't displayed until the main window's message pump starts, which is after the loading, thus defeating the purpose. If I don't make it a child window of the main window, it becomes a separate window with a separate taskbar button and it just looks silly.

    How can I get this to work correctly?
  2. #2
  3. No Profile Picture
    I haz teh codez!
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2003
    Posts
    2,548
    Rep Power
    2337
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Location
    Niteroi, Brazil
    Posts
    39
    Rep Power
    7

IMN logo majestic logo threadwatch logo seochat tools logo