CStatic::Create

This method creates a Windows CE static control and attaches it to the CStatic object.

To construct a CStatic object, call the CStatic constructor, then call Create.

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 Create( LPCTSTR lpszText, DWORD dwStyle, const RECT& rect,
CWnd*
pParentWnd, UINT nID = 0xffff );

Remarks

Windows CE does not support the SS_ENHMETAFILE, SS_METAPICT, SS_RIGHTIMAGE or SS_SIMPLE static control styles. Use SS_LEFT or SS_LEFTNOWORDWRAP to emulate the SS_SIMPLE style. Windows CE also does not support the SS_BLACKFRAME, SS_BLACKRECT, SS_GRAYFRAME, SS_GRAYRECT, SS_OWNERDRAW, SS_WHITEFRAME, SS_WHITERECT styles; use the WM_PAINT message to achieve the same results. For information about supported static control styles, see the Windows and Control Styles chapter of the Windows CE SDK Guide.

See Also

CStatic::CStatic