CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    UK
    Posts
    65

    Flicker Free Dialog Bitmaps

    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



  2. #2
    Join Date
    May 1999
    Location
    Texas, USA
    Posts
    568

    Re: Flicker Free Dialog Bitmaps

    Are you doing this in your WM_PAINT override?

    Wayne



  3. #3
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    74

    Re: Flicker Free Dialog Bitmaps

    When you call InvalidateRect, add the second argument as FALSE.
    That is,
    InvalidateRect( &m_Area, FALSE )


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured