Advertisement

Problem with dialog Boxes

Started by November 10, 2005 09:00 PM
0 comments, last by eSCHEn 18 years, 10 months ago
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.
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 programcase 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.
--
Cheers,
Darren Clark

This topic is closed to new replies.

Advertisement