Register now or log in to join your professional community.
The signature of SetText in CCmdUI looks like following:
void SetText( LPCTSTR lpszText );
On some event you can use SetText in following way:
void CSomeXYZEditView::OnUpdateLineNumber(CCmdUI *pCmdUI) { int nLine =1; CString string; string.Format(_T("Line %d"), nLine); pCmdUI->Enable(TRUE); pCmdUI->SetText(string); }I hope the example helps how to use SetText.