flickering problem

  • Thread starter Thread starter vani
  • Start date Start date
V

vani

Hi
I am fresher in VC++. I am working on a VC++ Project.
I have a serious flickering problem when i am resizing
the window.
Please help me.

vani
 
Hi,

One approach is to intercept WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages
to detect the start and end of the resizing operation and set a flag during
the move to stop painting until the drag finishes.

Cheers
Doug Forster
 
Thanks for the reply.
I am working on the approach u told me.Once i get some
output i will let u know.
 
Best way is to remove CS_VREDRAW and CS_HREDRAW in the class style. Also,
calculating the new area to be drawn and only drawing there (if you don't
need to redraw the old area) will help a ton.
 
Yes, I argee with that, remove CS_VREDRAW and CS_HREDRAW. The list of
rectangles to re-draw can be gotten from ::GetUpdateRgn and then
::GetRegionData. Clip your datastructure according to this list.

Ferdinand.
 
Back
Top