Delen via


CMFCToolBar::SetSiblingToolBar

Specifies the sibling of the toolbar.

void SetSiblingToolBar(
   CMFCToolBar* pBrotherToolbar
);

Parameters

  • [in] pBrotherToolbar
    A pointer to the sibling toolbar.

Remarks

This method enables the Show Buttons on One Row or Show Buttons on Two Rows buttons that are shown when the user displays the Customize pop-up menu. Call this method when you want to enable the user to specify whether related toolbars appear on the same row or on different rows.

Call this method after you enable the Customize button that appears on the toolbar. To enable the Customize button, call the CMFCToolBar::EnableCustomizeButton method.

To retrieve the sibling of a toolbar, call CMFCToolBar::GetSiblingToolBar.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::EnableCustomizeButton

CMFCToolBar::GetSiblingToolBar