QMessageBox in MFC application
-
Hi Experts,
I have a MFC MDI application, and somewhere I'd like to pop up a QMessageBox.
However, I find that the message box is not modal, I still can interact with "view" and "main frame" in MFC world.
Here're my codes, any suggestions? Thanks!@
// parentHwnd is the HWND of CView from MFC
m_parent = new QWinWidget(parentHwnd);
QMessageBox msg(m_parent);
msg.exec();
@Thanks
Roger