CGdiObject::CreateStockObject

This method retrieves a handle 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

BOOL CreateStockObject ( int nIndex );

Remarks

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

See Also

CBrush::CBrush, CFont::CFont