共用方式為


CMFCRibbonBaseElement::SetCompactMode

Sets the display size for the ribbon element.

virtual void SetCompactMode(
   BOOL bCompactMode = TRUE
);

Parameters

  • [in] bCompactMode
    TRUE to reduce the display size of the ribbon element; FALSE to increase the display size of the ribbon element.

Remarks

The following table summarizes the logic for this method.

bCompactMode

Current ribbon element size

New ribbon element size

TRUE

Compact

No change.

TRUE

Intermediate

Compact if it is possible.

TRUE

Large

Intermediate if it is possible.

FALSE

Compact

Intermediate if it is possible; otherwise large.

Requirements

Header: afxbaseribbonelement.h

See Also

Reference

CMFCRibbonBaseElement Class

Hierarchy Chart