September 24th, 2008, 02:55 AM
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?
September 24th, 2008, 07:20 AM
September 24th, 2008, 07:57 AM