virtual void SetText( LPCTSTR lpszText );
Parameters
lpszText
A pointer to a text string.
Remarks
Call this member function to set the text of the user-interface item for this command.
Example
void CMyRichEditView::OnUpdateLineNumber (CCmdUI* pCmdUI)
{
int nLine = GetRichEditCtrl ().LineFromChar (-1) + 1;
CString string;
string.Format ("Line %d", nLine);
pCmdUI->Enable (TRUE);
pCmdUI->SetText (string);
}
CCmdUI Overview | Class Members | Hierarchy Chart
See Also CCmdUI::Enable