PDA

View Full Version : Partial Rendering Windows 7 Basic



FS_Weather
06-02-2010, 02:38 PM
Under Windows 7 basic mode(aero disabled), open a modal windows form on top of an openGL window. Close the modal form, only previously covered area by the modal form are redrawn and the remaining is unrefreshed.

It works fine when aero is on under Windows 7. Does anyone know why it happens and how to fix the problem?

mhagain
06-02-2010, 04:02 PM
This is normal behaviour with Windows GDI - only the area that needs refreshing gets refreshed. You'll need to modify your rendering code to refresh the full window every time. Read up on the WM_PAINT message for more background info.

sammie381
06-03-2010, 02:06 PM
Under Windows 7 basic mode(aero disabled), open a modal windows form on top of an openGL window. Close the modal form, only previously covered area by the modal form are redrawn and the remaining is unrefreshed.

It works fine when aero is on under Windows 7. Does anyone know why it happens and how to fix the problem?



See here about mixing GDI and OpenGL on Vista/Windows 7:
http://www.opengl.org/pipeline/article/vol003_7/