When you create a simple SDI Application, you can see that the Title of the Window is displayed as “Document Name – Application name” like you’re seeing below.

image

How we can remove this? It’s simple, just remove the FWS_ADDTOTITLE style from the frame window. You’ve to speicify this before the window being created. You can write the code in PreCreateWindow function.

See the snippet below

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
 {
 	cs.style &= ~ FWS_ADDTOTITLE;	// Remove the style
 	if( !CFrameWndEx::PreCreateWindow(cs) )
 		return FALSE;
 	return TRUE;
}

After that you can see the Window title like this!

image