Click to See Complete Forum and Search --> : Flicker Free Dialog Bitmaps


Jason Brooks
May 14th, 1999, 05:59 PM
Hello,

I'm updating a Virtual Bitmap and blitting to a RECT in my Dialog Based Application. However everytime I InvalidateRect( &m_Area ) the subsequent PAINT Flickers. If I was using an SDI or MDI template, then I could over ride WM_ERASEBKGND, however Dialog Based MFC Applications don't appear to support this message so I can't appear to over ride it.

Can anyone point me in the right direction?

I am creating the bitmap to blit off-screen and only Invalidating the area that needs updating.

Many Thanks
Jason
http://www.netcomuk.co.uk/~jbrooks

Wayne Fuller
May 14th, 1999, 09:25 PM
Are you doing this in your WM_PAINT override?

Wayne

Jaeyeon Lee
May 14th, 1999, 10:01 PM
When you call InvalidateRect, add the second argument as FALSE.
That is,
InvalidateRect( &m_Area, FALSE )