1. 使用QMessageBox可以这样:
void CJxDicomerApp::OnTest()
{
QWinWidget* parent = new QWinWidget(AfxGetMainWnd()->m_hWnd);
QMessageBox::information(parent, QString::fromStdWString(L"MFC下使用QMessageBox"), QString::fromStdWString(L"今天是个大晴天!"));
delete parent;
parent = nullptr;
}