Поделиться через


COleControl::SetText

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

void SetText(
   LPCTSTR pszText 
);

Параметры

  • pszText
    A pointer to a character string.

Заметки

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.

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::GetText

COleControl::InternalGetText

COleControl::OnTextChanged