1. 在VC++中,AfxMessageBox消息框的标题会默认为程序的标题。怎么修改呢?
在CMyApp::InitInstance中进行修改,其中的成员函数m_pszAppName就是AfxMessageBox默认的标题。
BOOL CMyApp::InitInstance()
{
AfxEnableControlContainer();
free((void*)this->m_pszAppName);
this->m_pszAppName = _tcsdup(_T("万合智新杀人吧裁判软件"));
......//其他
}
2. CDC::DrawText方法中要实现分行应该是用什么参数:
CStaticT类中:
m_static.CreateFont(19,8,"宋体",400);
m_static.SetTextColor(RGB(200,0,0));
m_static.SetAlign(DT_LEFT|DT_WORDBREAK); //DT_WORDBREAK是可以将文字自动分行