Skip to content

Commit

Permalink
Add WM_DPICHANGED to menubar
Browse files Browse the repository at this point in the history
  • Loading branch information
ozone10 committed Mar 30, 2024
1 parent 9e6896a commit 1327985
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PowerEditor/src/NppDarkMode.cpp
Expand Up @@ -41,6 +41,10 @@
#define WINAPI_LAMBDA
#endif

#ifndef WM_DPICHANGED
#define WM_DPICHANGED 0x02E0
#endif

// already added in project files
// keep for plugin authors
//#ifdef _MSC_VER
Expand Down Expand Up @@ -912,6 +916,7 @@ namespace NppDarkMode
return true;
}

case WM_DPICHANGED:
case WM_THEMECHANGED:
{
if (g_menuTheme)
Expand Down

0 comments on commit 1327985

Please sign in to comment.