Поделиться через


CScrollView::FillOutsideRect

Call FillOutsideRect to fill the area of the view that appears outside of the scrolling area.

void FillOutsideRect(
   CDC* pDC,
   CBrush* pBrush 
);

Параметры

  • pDC
    Device context in which the filling is to be done.

  • pBrush
    Brush with which the area is to be filled.

Заметки

Use FillOutsideRect in your scroll view's OnEraseBkgnd handler function to prevent excessive background repainting.

Пример

BOOL CMyScrollView::OnEraseBkgnd(CDC* pDC)
{
    CBrush br(GetSysColor(COLOR_WINDOW)); 
    FillOutsideRect(pDC, &br);
    return TRUE;                   // Erased
}

Требования

Header: afxwin.h

См. также

Основные понятия

CScrollView Class

CScrollView Members

Hierarchy Chart

CWnd::OnEraseBkgnd