Jump to content
  • Advertisement
Sign in to follow this  
BaSSraf

Viewport redraw problems with popup menus etc

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

Hey guys, I have this GUI with 2 viewports where each viewport is simply a child window parented to well.. a parent, so it keeps centered inside its parent window etc.. The problem is whenever I use a popup throughout the application which has an (xp style) shadow under it, it grabs the application as background and paints the shadow for the popup, so far no problem.. But when I now move to the viewport and use a popup on the viewport, the redrawing of the viewport stops underneath the popup and shows the image "taken" when the first popup was shown.. Any ideas how to make such a viewport totally unaware of any GDI drawing going on and have it always draw to the viewport rect whatever weird lock GDI may have on it? Ehm.. any ideas?

Share this post


Link to post
Share on other sites
Advertisement
Are you sure your application is still ticking over when the dialog is shown? I've made the mistake of using modal dialogs that effectively froze my message pump, consequently no draw calls were despatched and it looked like it had stopped [smile]

hth
Jack

Share this post


Link to post
Share on other sites
Hey jolly, yes, its still ticking :)
Its rendering from within a thread, I just found out the same problem occurs when I move two windows over each other, the lower window stops repainting from the upper window's bottom downwards..

|---|
| 1 |---|
|---| 2 | --- when overlapped stops redrawing downwards
|---|

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!