The SDI Case
In a single document interface (SDI) application, the default window style in the framework is a combination of the WS_OVERLAPPEDWINDOW and FWS_ADDTOTITLE styles. FWS_ADDTOTITLE is an MFC-specific style that instructs the framework to add the document title to the window’s caption.
意思就是说由于有FWS_ADDTOTITLE这种样式,单文档的应用程序会用文档的标题作为窗口标题可以在PreCreateWindow(CREATESTRUCT& cs)中取消这种样式:cs.style = cs.style & ~FWS_ADDTOTITLE;然后可以设置自己的标题:
cs.lpszName = "我的标题";
当然更简单的就是在String Tab中IDR_MAINFTRAM中直接修改