Avoid flickering...
-
I draw my bitmap (OnDraw function) in my CScrollView derived class using StretchBlt function... I want to avoid flickering when resizing and scrolling view.. Can anybody help me?
-
I draw my bitmap (OnDraw function) in my CScrollView derived class using StretchBlt function... I want to avoid flickering when resizing and scrolling view.. Can anybody help me?
did you handle the WM_ERASEBKGND - Message?
BOOL CMyView::OnEraseBkgnd(CDC* pDC)
{
// TODO: Add your message handler code here and/or call default// return CWnd::OnEraseBkgnd(pDC); return true;
}
(i had several problems doing this with ScrollViews.. but maybe you achieve this) have a nice one bernhard
Sometimes I think the surest sign for intelligent life elsewhere in the universe is that none of them ever tried to contact us.
-
did you handle the WM_ERASEBKGND - Message?
BOOL CMyView::OnEraseBkgnd(CDC* pDC)
{
// TODO: Add your message handler code here and/or call default// return CWnd::OnEraseBkgnd(pDC); return true;
}
(i had several problems doing this with ScrollViews.. but maybe you achieve this) have a nice one bernhard
Sometimes I think the surest sign for intelligent life elsewhere in the universe is that none of them ever tried to contact us.
try double-buffering www.klangwerker.de/developer/english/double_buf.htm (Didn`t I see this post on www.codeguru.com ) CU Mario /// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------
-
I draw my bitmap (OnDraw function) in my CScrollView derived class using StretchBlt function... I want to avoid flickering when resizing and scrolling view.. Can anybody help me?
Yep, take a look at a class called CMemDC, maybe this class can help you ( you can find that here or in CodeGuru). HTH Braulio