COleControl::SetText

Sets the value of your control's stock Caption or Text property.

void SetText(
   LPCTSTR pszText 
);

Parameters

  • pszText
    A pointer to a character string.

Remarks

Note that the stock Caption and Text properties are both mapped to the same value. This means that any changes made to either property will automatically change both properties. In general, a control should support either the stock Caption or Text property, but not both.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::GetText

COleControl::InternalGetText

COleControl::OnTextChanged

Other Resources

COleControl Members