Sign in to follow this  
jmics

Problem with dialog Boxes

Recommended Posts

jmics    128
I've made a simple program that loads in basic models(pretty much just a set of triangles). The problem is that my program uses many dialog boxes to set lighting values and other various things and any time they are moved the program doesn't erase the box at the previous location and it creates a long stream of boxes over the path that it was moved(hope that makes sense). A possible solution would be to make all the dialog boxes unmovable but I'm not exactly sure how to do that. I think it might be a certain WS or DS(Windows style or Dialog style). Any help would be appreciated.

Share this post


Link to post
Share on other sites
eSCHEn    394
You need to re-draw the scene after you move the dialog boxes and, if you want, when you move the dialogs. For example:
// in your paint event handler in the main program
case WM_PAINT:
RedrawOpenGL();
break;
When you move the dialog it will cause an OnPaint event to happen and this will trigger your redraw. This might make the rendering flickery but this is just off the top of my head.

Hope that helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this