共用方式為


CMFCRibbonPanel::InsertSeparator

Inserts a separator at the given position.

virtual BOOL InsertSeparator(
    int nIndex
);

Parameters

  • [in] nIndex
    Specifies the zero-based index where the separator is inserted.

Return Value

TRUE if the separator has been inserted successfully; otherwise, FALSE.

Remarks

Call this method to insert a separator at the position specified by nIndex. To insert a separator next to the most recently added ribbon element, call CMFCRibbonPanel::AddSeparator.

Requirements

Header: afxRibbonPanel.h

See Also

Reference

CMFCRibbonPanel Class

Hierarchy Chart