CScrollView::FillOutsideRect

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

Parameters

pDC

Device context in which the filling is to be done.

pBrush

Brush with which the area is to be filled.

Remarks

Call FillOutsideRect to fill the area of the view that appears outside of the scrolling area. Use FillOutsideRect in your scroll view’s OnEraseBkgnd handler function to prevent excessive background repainting.

Example

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

CScrollView OverviewClass MembersHierarchy Chart

See Also   CWnd::OnEraseBkgnd