Use this member function to retrieve a handle to one of the predefined stock pens, brushes or fonts.
BOOL CreateStockObject ( int nIndex );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
Windows CE doesn't support the following stock objects in the nIndex parameter.
ANSI_FIXED_FONT
ANSI_VAR_FONT
DEFAULT_PALETTE
OEM_FIXED_FONT
SYSTEM_FIXED_FONT
CGdiObject Overview, CGdiObject Member Functions, Graphical Drawing Object Classes, CBrush::CBrush, CFont::CFont