CSpinButtonCtrl::Create

BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );

Return Value

Nonzero if initialization was successful; otherwise 0.

Parameters

dwStyle

Specifies the spin button control’s style. Apply any combination of spin button control styles to the control.

rect

Specifies the spin button control’s size and position. It can be either a CRect object or a RECT structure

pParentWnd

A pointer to the spin button control’s parent window, usually a CDialog. It must not be NULL.

nID

Specifies the spin button control’s ID.

Remarks

You construct a CSpinButtonCtrl object in two steps. First call the constructor, then call Create, which creates the spin button control and attaches it to the CSpinButtonCtrl object.

The following styles are specific to spin button controls:

CSpinButtonCtrl OverviewClass MembersHierarchy Chart

See Also   CSpinButtonCtrl::CSpinButtonCtrl