06-14-2000, 11:30 AM
I have alot of flicker and I want to get rid of it.
I am using MFC and displaying OpenGL graphics in a CView. I use a slider control to manipulate the viewpoint. When the user moves the slider the program calls Invalidate and UpdateWindow which in turn calls OnDraw whichs uses the value from the slider to change the viewpoint. I am not doing anything graphically intensive yet. I have PFD_DOUBLEBUFFER enabled and SwapBuffers(m_pDC->m_hDC)is used in OnDraw.
Is there a way to stop the flicker?
I am using MFC and displaying OpenGL graphics in a CView. I use a slider control to manipulate the viewpoint. When the user moves the slider the program calls Invalidate and UpdateWindow which in turn calls OnDraw whichs uses the value from the slider to change the viewpoint. I am not doing anything graphically intensive yet. I have PFD_DOUBLEBUFFER enabled and SwapBuffers(m_pDC->m_hDC)is used in OnDraw.
Is there a way to stop the flicker?