CODViewport::EraseBkgnd

Erases the background of the viewport.

Defined in: OdViewport.cpp

Syntax

void CODViewport::EraseBkgnd(CDC* pDC, const CRect &rcUpdate)

void CODViewport::EraseBkgnd(CDC* pDC)

Return Value

void

Parameters

pDC

The device context to draw in.

rcUpdate

Rectangular area to update.

Comments

First, the viewport is filled with the out-of-bounds color. Then the virtual drawing area is filled with the background color. Finally, the background component is drawn. If the update rectangle is not specified, then the entire viewport is erased.