CButton::Create

This method creates the Windows CE button control and attaches it to the CButton object.

To construct a CButton object in two steps, call the 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 lpszCaption, DWORD dwStyle, const RECT& rect,
CWnd* pParentWnd, UINT nID );

Remarks

Windows CE does not support the following button styles:

Use the BS_RIGHTBUTTON style instead of BS_LEFTTEXT to place a checkbox or radio button to the right of the associated text. Use the BS_OWNERDRAW style to create the effects otherwise achieved with the BS_USERBUTTON, BS_BITMAP or BS_ICON button styles.

For information on supported styles, see the Window and Control Styles chapter in the Windows CE SDK Guide:

See Also

CButton::CButton