From 823721ab8c63ccaa0efa6790edea17d6e0b9fb90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Thu, 28 Dec 2023 21:30:27 +0800 Subject: [PATCH] update --- src/FluFramelessHelper.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/FluFramelessHelper.cpp b/src/FluFramelessHelper.cpp index 3f4233e2..603082d1 100644 --- a/src/FluFramelessHelper.cpp +++ b/src/FluFramelessHelper.cpp @@ -77,7 +77,18 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void * { return false; } - if(uMsg == WM_NCCALCSIZE){ + const WPARAM wParam = msg->wParam; + const LPARAM lParam = msg->lParam; + if(uMsg == WM_WINDOWPOSCHANGING){ + WINDOWPOS* wp = reinterpret_cast(lParam); + if (wp != nullptr && (wp->flags & SWP_NOSIZE) == 0) + { + wp->flags |= SWP_NOCOPYBITS; + *result = DefWindowProc(hwnd, uMsg, wParam, lParam); + return true; + } + return false; + }else if(uMsg == WM_NCCALCSIZE){ *result = WVR_REDRAW; return true; }else if(uMsg == WM_NCPAINT){