//Set title for application’s main frame window .
AfxGetMainWnd ( ) — SetWindowText (_T("Application title"))//Set title for View’s MDI child frame window .
GetParentFrame ( ) — SetWindowText ("_T ("MDI Child Frame newtitle"))//Set title for dialog’s push button control.
GetDigitem (IDC_BUTTON) — SetWindowText (_T ("Button new title") )
如果需要经常修改窗口的标题(注:控件也是窗口),应该考虑使用半文档化的函数AfxSetWindowText。该函数在AFXPRIV.H中说明,在WINUTIL.CPP中实现,在联机帮助中找不到它,它在AFXPRIV.H中半文档化,
在以后发行的MFC中将文档化。