diff --git a/SOUI/src/control/SMessageBox.cpp b/SOUI/src/control/SMessageBox.cpp index b49ee0c28..94d5c4537 100755 --- a/SOUI/src/control/SMessageBox.cpp +++ b/SOUI/src/control/SMessageBox.cpp @@ -188,6 +188,7 @@ BOOL SMessageBoxImpl::OnInitDialog(HWND wnd, LPARAM lInitParam) SetWindowPos(0, 0, 0, szWnd.cx, szWnd.cy, SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER); CenterWindow(); + SetForegroundWindow(m_hWnd); SetMsgHandled(FALSE); // chain to dpihandler. return 0; }