Knowledge Base Nr: 00028 apptitle.cpp - http://www.swe-kaiser.de

MFC: um zu verhindern dass der dokumentname im titel einer MFC applikation angezeigt wird
kann man das FWS_ADDTOTITLE flag in CMainFrame::PreCreateWindow zurücksetzen

  
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;

// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style &= ~FWS_ADDTOTITLE;

return TRUE;
}