From c8a5a82994e513acb00ba0e1f0b882ccbb18a6db Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 26 12月 2023 05:15:47 +0800 Subject: [PATCH] clean code --- src/quick/quickwindowagent_win.cpp | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/quick/quickwindowagent_win.cpp b/src/quick/quickwindowagent_win.cpp index a1966fd..46e72e3 100644 --- a/src/quick/quickwindowagent_win.cpp +++ b/src/quick/quickwindowagent_win.cpp @@ -8,6 +8,10 @@ namespace QWK { #if QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDER) + // 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