Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to use the SetText in the CCmdUI class methods in visual studio c++?

user-image
Question ajoutée par karthik meda , Software trainee engineer , Altech imaging and computing
Date de publication: 2014/02/21

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.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?