Skip to content

Commit

Permalink
call SetForegroundWindow for msgbox
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjianxiong1 committed Sep 20, 2023
1 parent 0c37aae commit ea5e7e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SOUI/src/control/SMessageBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ea5e7e3

Please sign in to comment.