CODViewport::DrawComponents

Draws the given set of components.

Defined in: OdViewport.cpp

Syntax

void CODViewport::DrawComponents(CDC* pDC, CODComponentSet* pCompSet)

CRect CODViewport::DrawComponents(CODComponentSet* pCompSet)

Return Value

Area occupied by the given set of components.

Parameters

pCompSet

The list of components to draw.

Comments

This function calculates the bounding rectangle of the given set of components and redraws that area. Instead of queueing up a paint message, the viewport is repainted immediately. The background and any other components that fall within the bounding rectangle of the given components are redraw as well.