Skip to content

Commit

Permalink
Enabled visual styles for Windows about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert committed Jan 17, 2023
1 parent 6451ff9 commit 482edb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/windows/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#include <shellapi.h>
#include <Shlobj.h>

// enable visual styles for message boxes
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

namespace {
const auto online_help_url = "https://github.com/houmain/keymapper#keymapper";

Expand Down Expand Up @@ -196,7 +199,7 @@ namespace {
"%s",
about_header, about_footer));

MessageBoxA(g_window, text.data(), caption, MB_TOPMOST);
MessageBoxA(g_window, text.data(), caption, MB_ICONINFORMATION | MB_TOPMOST);
}

void toggle_active() {
Expand Down

0 comments on commit 482edb8

Please sign in to comment.