Jump to content
  • Advertisement
Sign in to follow this  
ProblemBaby

Searching a message

This topic is 4889 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

Hi I use the DialogBox function to create a Dialog and then Ive som aeras where I want draw with OpenGL. But the first WM_PAINT message doesn't draw the stuff. So I wonder if it exists a message that is called at initialization where I can draw and it will be recognized.

Share this post


Link to post
Share on other sites
Advertisement
But I putted a Msg box in both WM_INITDIALOG and WM_PAINT
and I saw that WM_INITDIALOG was called before WM_PAINT.
even though no graphics is displayed, Ive to do some action but I dont want to do that cause it have to be displayed immediately.




Share this post


Link to post
Share on other sites
Hmm, that's weird.
You could try to put a RedrawWindow and/or UpdateWindow in WM_INITDIALOG, but the first WM_PAINT should draw everything at least once when the dialog is shown.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!