VC++: How would you remove 'Untitled' from caption bar in Doc/View?
How would you remove 'Untitled' from caption bar in Doc/View?
To remove 'Untitled' from caption bar of frame window in Doc/View add following code.
int PreCreateWindow ( CREATESTRUCT cs )
{
cs.style &= ~FWS_ADDTOTITLE ;
return CFrameWnd::PreCreateWindow ( cs ) ;
}




Comments
Log in or create a user account to comment.