Jump to content
  • Advertisement
Sign in to follow this  
Syed Atif Akhtar

Add a progress bar to my Splash Window

This topic is 3671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The Progress Bar, like any other Win32 Control, is created by calling CreateWindow or CreateWindowEx and passing the name of the Window Class that corresponds to the control you want. The name of the class for the Progress Bar is PROGRESS_CLASS. Once you've created it as a child of your splash window, you send it messages to update the progress. See the MSDN documentation for more info.

Keep in mind that for the progress bar to keep working while you're loading your app, you'll need to keep pumping the message loop on the thread used to create the splash window. If you use a seperate thread for loading this is pretty easy, since your window thread can keep pumping messages. Otherwise you'll have to load one piece, then pump messages, then load another, etc.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!