[Q]I got some problem OpenGL programing for Dialog based

hi
I’m a beginner. :wink:

so, i have many problem OpenGL programming.

Now i am doing dialog based project.
I need redrawing only OpenGL object.
but, when drawing OpenGL object , all item(button, static text, edit box, …) is redraw.

how can i redraw only OpenGL object?

please, help me. :slight_smile:

What do you mean? Calling glClear affects other windows stuff? Usually all buttons/labels/edits are always repainted with WM_PAINT message. Its not OpenGL task to repaint them.

Originally posted by Randolph:
What do you mean? Calling glClear affects other windows stuff? Usually all buttons/labels/edits are always repainted with WM_PAINT message. Its not OpenGL task to repaint them.

hi, thanks your information.
Usually all items are always repainted WM_PAINT message.
but , i want to know how can i only repaint OpenGL object.

My project repainting OpenGL object and items.

please, help me.

e-mail : war3@icitiro.com

As I think you try to win performance, trying to disable GUI elements redrawing within a window. I dont think you’ll receive serious results, but you may handle WM_PAINT message by your own and allow window to repaint only if you need it (simply avoid calls to defWindowProc when you received WM_PAINT, and call it not every time…). Hope, this helps.