CSliderCtrl::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 slider control’s style. Apply any combination of slider control styles to the control.

rect

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

pParentWnd

Specifies the slider control’s parent window, usually a CDialog. It must not be NULL.

nID

Specifies the slider control’s ID.

Remarks

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

Slider controls can have either a vertical or horizontal orientation. They can have tick marks on either side, both sides, or neither. They can also be used to specify a range of consecutive values. These properties are controlled by using slider styles, which you specify when you create the slider control:

CSliderCtrl OverviewClass MembersHierarchy Chart

See Also   CSliderCtrl::CSliderCtrl