MFC笔记3

修改MDI分割窗口类型的窗口主标题

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 m_strTitle = "MainTitle";  
 if( !CMDIFrameWnd::PreCreateWindow(cs) )
  return FALSE;
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs

 return TRUE;
}

 

修改窗口副标题

BOOL CGUITestingDoc::OnNewDocument()
{
 SetTitle(_T("SubTitle"));
 if (!CDocument::OnNewDocument())
  return FALSE;

 // TODO: add reinitialization code here
 // (SDI documents will reuse this document)

 return TRUE;
}

你可能感兴趣的:(mfc,styles,class)