為何我用MFC 精靈做出來的程式,左上角都會出現untitled-xxx,其中xxx是我應用程式的名字,請問怎樣才能把untitled的字樣消除。
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style&=~(FWS_ADDTOTITLE);
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style&=~(FWS_ADDTOTITLE);
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
全站熱搜
留言列表