Поделиться через


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 
);

Параметры

  • 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.

Возвращаемое значение

Nonzero if successful; otherwise 0.

Пример

See the example for CReBar::AddBar.

Требования

Header: afxext.h

См. также

Основные понятия

CReBar Class

CReBar Members

Hierarchy Chart

CReBarCtrl Class