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.
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.
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.