Export (0) Print
Expand All

CMFCCaptionBar::SetText

Sets the text label for the caption bar.

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

[in] strText

The text string to set.

[in] textAlignment

The text alignment.

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

Header: afxcaptionbar.h

Show:
© 2014 Microsoft