Modify Title in MFC multi-document

Modifying the title in a multi-document project is different from that in the dialog box. It can be set in CMainFrame::PreCreateWindow.

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
	if( !CMDIFrameWndEx::PreCreateWindow(cs) )
		return FALSE;
	// TODO: modify it here
	// CREATESTRUCT cs to modify the window class or style
	cs.lpszName = theApp.strVersion;

	return TRUE;
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324640330&siteId=291194637