修改单文档标题

一、CMainFrame::PreCreateWindow(CREATESTRUCT& cs)

{
 if( !CFrameWnd::PreCreateWindow(cs) )
  return FALSE;
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs
 cs.lpszName = "mytitle";                            //标题名
 cs.style &= ~FWS_ADDTOTITLE;            //必须要加

 return TRUE;
}

你可能感兴趣的:(修改单文档标题)