Click to See Complete Forum and Search --> : Window title in CView class!


-mk-
October 27th, 2004, 02:38 PM
Hey!

How do I set my CView window title? in MFC?

-mk-

flight_lcf
November 8th, 2004, 09:23 AM
SetWindowTex(str)

Mutilated1
November 8th, 2004, 03:32 PM
Your CView derived class doesn't have a window title. Its parent CFrameWnd derived class does however have a title, and you set it by making sure that the CFrameWnd derived class has the FWS_ADDTOTITLE style so that it will automatically add the name of the document.

If you want to change that, try this...

AfxGetMainWnd()->SetWindowText(_T("Some Text To Set..."));