CScrollBar::Create

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

Return Value

Nonzero if successful; otherwise 0.

Parameters

dwStyle

Specifies the scroll bar’s style. Apply any combination of scroll-bar styles to the scroll bar. 

rect

Specifies the scroll bar’s size and position. Can be either a RECT structure or a CRect object.

pParentWnd

Specifies the scroll bar’s parent window, usually a CDialog object. It must not be NULL.

nID

The scroll bar’s control ID.

Remarks

You construct a CScrollBar object in two steps. First call the constructor, which constructs the CScrollBar object; then call Create, which creates and initializes the associated Windows scroll bar and attaches it to the CScrollBar object.

Apply the following window styles to a scroll bar: 

CScrollBar OverviewClass MembersHierarchy Chart

See Also   CScrollBar::CScrollBar