FWS_PREFIXTITLE Shows the document name before the application name in a frame window title. For example, "Document - WordPad". You can specify the strings displayed in the Advanced Options dialog box in AppWizard. If you need to turn this option off, override the CWnd::PreCreateWindow member function.
你爱怎么着就怎么着!
UpdateFrameTitleForDocument(strFileName);具体用法,去msdn查。
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\
search一下UpdateFrameTitleForDocument。是这样的:
void CFrameWnd::UpdateFrameTitleForDocument(LPCTSTR lpszDocName)
m_FileName.Format("%s", FileNameOnly(pDoc->m_FilePathName));
pDoc->SetTitle(m_FileName);