CDC::SelectStockObject

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

Syntax

virtual CGdiObject* SelectStockObject ( int nIndex );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

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

ANSI_FIXED_FONT

ANSI_VAR_FONT

DEFAULT_PALETTE

OEM_FIXED_FONT

SYSTEM_FIXED_FONT

See Also

CDC Overview, CDC Member Functions, Graphical Drawing Classes, CGdiObject