When the MDI child is maximized the title is set by CMainFrame so you have to override the same function in your CMainFrame class too :-)