Skip to content

Commit f4c3ed5

Browse files
committed
Make alert visible-on-top
1 parent 049f05c commit f4c3ed5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tinyphone/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace tp {
2424
void ShowWinAlert(std::string title, std::string message) {
2525
wchar_t *wmsg = new wchar_t[message.length() + 1]; //memory allocation
2626
mbstowcs(wmsg, message.c_str(), message.length() + 1);
27-
MessageBoxW(NULL, wmsg, L"Error!", MB_ICONEXCLAMATION | MB_OK);
27+
MessageBoxW(NULL, wmsg, L"Error!", MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL);
2828
delete[]wmsg;
2929
}
3030

0 commit comments

Comments
 (0)