CDocument::SetTitle This method specifies the title of the document, that is, the string displayed in the title bar of a frame window. Calling this method updates the titles of all frame windows that display the document.virtual void SetTitle( LPCTSTR lpszTitle ); Parameters lpszTitle Points to the string to be used as the title of the document.
CFrameWnd::GetActiveDocument virtual CDocument* GetActiveDocument( );Return ValueA pointer to the current CDocument. If there is no current document, returns NULL.ResCall this member function to obtain a pointer to the current CDocument attached to the current active view.
不过为什么我没找到m_pMainWnd这个变量的定义呢?
This method specifies the title of the document, that is, the string displayed in the title bar of a frame window. Calling this method updates the titles of all frame windows that display the document.virtual void SetTitle(
LPCTSTR lpszTitle );
Parameters
lpszTitle
Points to the string to be used as the title of the document.
virtual CDocument* GetActiveDocument( );Return ValueA pointer to the current CDocument. If there is no current document, returns NULL.ResCall this member function to obtain a pointer to the current CDocument attached to the current active view.