From b2471667e1377df998ec50a6f952f3d164e73e3d Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 27 12月 2023 04:21:30 +0800 Subject: [PATCH] Add style option back --- src/quick/quickwindowagent_win.cpp | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/quick/quickwindowagent_win.cpp b/src/quick/quickwindowagent_win.cpp index a1966fd..61ea0ed 100644 --- a/src/quick/quickwindowagent_win.cpp +++ b/src/quick/quickwindowagent_win.cpp @@ -7,7 +7,11 @@ namespace QWK { -#if QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDER) +#if QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDERS) + // TODO: Find a way to draw native border + // We haven't found a way to place hooks in the Quick program and call the GDI API to draw + // the native border area so that we'll use the emulated drawn border for now. + class BorderItem : public QQuickPaintedItem, public NativeEventFilter, public SharedEventFilter { @@ -107,9 +111,7 @@ } case WM_SETTINGCHANGE: { - if (!msg->wParam && msg->lParam && - std::wcscmp(reinterpret_cast<LPCWSTR>(msg->lParam), L"ImmersiveColorSet") == - 0) { + if (isImmersiveColorSetChange(msg->wParam, msg->lParam)) { update(); } break; -- Gitblit v1.9.1