CStatic::Create

Call this member function to create a Windows static control and attach it to the CStatic object.

You construct a CStatic object in two steps. First call the constructor CStatic, then call Create.

Syntax

BOOL Create( LPCTSTR lpszText, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID = 0xffff );

At a Glance

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

Remarks

Windows CE doesn't 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 doesn't support the SS_BLACKFRAME, SS_BLACKRECT, SS_GRAYFRAME, SS_GRAYRECT, SS_OWNERDRAW, SS_WHITEFRAME, SS_WHITERECT styles but you can use the WM_PAINT message to achieve the same results. For information on supported static control styles, see Static Control Styles.

See Also

CStatic Overview, CStatic Member Functions, Control Classes, CStatic::CStatic