一个单文档应用程序,标题栏上写的是Untitled
这个应该怎么改?
找了半天没找到

解决方案 »

  1.   

    BOOL C*****App::InitInstance()中m_pMainWnd->SetWindowText(_T("TEXT"));
      

  2.   

    搞定了
    不过为什么我没找到m_pMainWnd这个变量的定义呢?
      

  3.   

    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. 
      

  4.   

    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.