Skip to content

Commit

Permalink
Make alert visible-on-top
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster committed Feb 5, 2019
1 parent 049f05c commit f4c3ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyphone/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace tp {
void ShowWinAlert(std::string title, std::string message) {
wchar_t *wmsg = new wchar_t[message.length() + 1]; //memory allocation
mbstowcs(wmsg, message.c_str(), message.length() + 1);
MessageBoxW(NULL, wmsg, L"Error!", MB_ICONEXCLAMATION | MB_OK);
MessageBoxW(NULL, wmsg, L"Error!", MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL);
delete[]wmsg;
}

Expand Down

0 comments on commit f4c3ed5

Please sign in to comment.