窗口产生之前改变窗口标题
In asingle document interface (SDI) application, the default window style in theframework is a combination of the WS_OVERLAPPEDWINDOW and FWS_ADDTOTITLEstyles.
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if(!CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style&=~FWS_ADDTOTITLE;//等价cs.style=WS_OVERLAPPEDWINDOW;
cs.lpszName="
http://www.sunxin.org";
return TRUE;
}