共用方式為


CMFCRibbonEdit::SetWidth

Sets the width of the text box for the CMFCRibbonEdit Class control.

void SetWidth(
    int nWidth,
    BOOL bInFloatyMode = FALSE 
);

Parameters

  • [in] nWidth
    The width, in pixels, of the text box.

  • bInFloatyMode
    TRUE to set the width for floating mode; FALSE to set the width for regular mode.

Remarks

The CMFCRibbonEdit Class control has two widths depending on its display mode: floating mode and regular mode.

Requirements

Header: afxRibbonEdit.h

See Also

Reference

CMFCRibbonEdit Class

Hierarchy Chart