用框架窗口类的SetWindowText(L"你的标题"):
在应用程序类CTestApp::InitInstance()中调用如下语句
m_pMainWnd->SetWindowText(L"你的标题");
或者在其他地方用AfxGetMainWnd()->SetWindowText(L"你的标题");
【解决】MFC改变窗口标题“无标题—title”
于 2023-02-02 17:51:53 首次发布
用框架窗口类的SetWindowText(L"你的标题"):
在应用程序类CTestApp::InitInstance()中调用如下语句
m_pMainWnd->SetWindowText(L"你的标题");
或者在其他地方用AfxGetMainWnd()->SetWindowText(L"你的标题");