Common Dialogs and OpenGL

I have a Common Dialog box that overlaps a window that is displaying an OpenGL scene. When the dialog box is moved, the window underneath isn’t redrawn and the picture of the box stays there. How can this problem be solved with an OpenGL window?

Catch the “WM_MOVE” window message for the overlapping window and redraw the OGL scene. There might be other ways to do it, but that’s the way I do it :slight_smile:

Originally posted by Herr.O:
Catch the “WM_MOVE” window message for the overlapping window and redraw the OGL scene. There might be other ways to do it, but that’s the way I do it :slight_smile:
You don’t need to do that, Windows will send a WM_PAINT message when a region needs repainting, he just needs to respond to the WM_PAINT message as with any normal windows app.

ah… ofcourse! :slight_smile: I’ll try that out too.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.