CDC::SelectStockObject

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

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual CGdiObject* SelectStockObject ( int nIndex );

Remarks

Windows CE does not support the following stock object values in the nIndex parameter:

See Also

CGdiObject