CDC::SelectStockObject 

virtual CGdiObject* SelectStockObject( int nIndex );

Return Value

A pointer to the CGdiObject object that was replaced if the function is successful. The actual object pointed to is a CPen, CBrush, or CFont object. If the call is unsuccessful, the return value is NULL.

Parameters

nIndex

Specifies the kind of stock object desired. It can be one of the following values:

Remarks

Selects a CGdiObject object that corresponds to one of the predefined stock pens, brushes, or fonts.

CDC OverviewClass MembersHierarchy Chart

See Also   CGdiObject::GetObject