Compartilhar via


CReBar::Create

Call this member function to create a rebar.

virtual BOOL Create( 
   CWnd* pParentWnd, 
   DWORD dwCtrlStyle = RBS_BANDBORDERS, 
   DWORD dwStyle = WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CBRS_TOP, 
   UINT nID = AFX_IDW_REBAR  
);

Parameters

  • pParentWnd
    Pointer to the CWnd object whose Windows window is the parent of the status bar. Normally your frame window.

  • dwCtrlStyle
    The rebar control style. By default, RBS_BANDBORDERS, which displays narrow lines to separate adjacent bands within the rebar control. See Rebar Control Styles in the Windows SDK for a list of styles.

  • dwStyle
    The rebar window styles.

  • nID
    The rebar's child-window ID.

Return Value

Nonzero if successful; otherwise 0.

Example

See the example for CReBar::AddBar.

Requirements

Header: afxext.h

See Also

Reference

CReBar Class

Hierarchy Chart

CReBarCtrl Class