From 18685b17ec5c1b7a08b9739a28d3d481227bae5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Fri, 3 May 2024 16:56:40 +0800 Subject: [PATCH] update --- src/FluFrameless.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FluFrameless.cpp b/src/FluFrameless.cpp index 4c2e92c8..da583654 100644 --- a/src/FluFrameless.cpp +++ b/src/FluFrameless.cpp @@ -169,8 +169,8 @@ void FluFrameless::componentComplete() { return true; } return false; - } else if (uMsg == WM_NCCALCSIZE) { - const auto clientRect = ((wParam == FALSE) ? reinterpret_cast(lParam) : &(reinterpret_cast(lParam))->rgrc[0]); + } else if (uMsg == WM_NCCALCSIZE && wParam == TRUE) { + const auto clientRect = &(reinterpret_cast(lParam))->rgrc[0]; const LONG originalTop = clientRect->top; const LONG originalLeft = clientRect->left; const LONG originalBottom = clientRect->bottom;