Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Be nice, this is a newbie windows API question. 1

Status
Not open for further replies.

TuxedoTemplar

Programmer
Apr 9, 2003
14
US
Ok since I just learned windows API programming yesterday (well all the concepts, but the fun part of actually doing anything useful I'm still crawling through [tongue]), I'm now trying to start on the application that I had in mind. All I want to know is what I need to do to have a splash screen (420x320, center screen) appear while the program is loading, and THEN have the main window come up after. The splash screen is nothing more than a bitmap that pops up over all applications and stays in place while the program is "loading", and has no buttons, borders, etc.

I have a VERY rough idea how I might do this, but I'm not looking forward to 3 hours of tinkering to get it to work, when (I'd almost be certain) someone can roll it off the top of their heads in less than 5 minutes, if only they didn't mind taking the time to do it. Thanks for the help.
 
Advice: create a dialog resource with a single bitmap that fills the whole dialog.

Then use the CreateDialogParam to create a modeless dialog. Save the dialog's HWND in a variable, then when the applicaton is finished loading, call DestroyWindow, passing the dialog's HWND.

Will
 
Splash screens usually are borderless. I'd follow the suggestion but, instead of a dialog, I'd use CreateWindow to create a borderless window in which you render your bitmap.

It involves a bit more work, but it's all API programming, like you wanted to...
Greetings,
Rick
 
Or even easier you could make a dialog without WS_BORDER style.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top