共用方式為


CMFCCaptionBar::SetText

Sets the text label for the caption bar.

void SetText(
   const CString& strText,
   BarElementAlignment textAlignment=ALIGN_RIGHT 
);

Parameters

  • [in] strText
    The text string to set.

  • [in] textAlignment
    The text alignment.

Remarks

The text label is aligned as specified by the textAlignment parameter. It can be one of the following BarElementAlignment values:

  • ALIGN_INVALID

  • ALIGN_LEFT

  • ALIGN_RIGHT

  • ALIGN_CENTER

Requirements

Header: afxcaptionbar.h

See Also

Reference

CMFCCaptionBar Class

Hierarchy Chart