From 3257f59c68da39d5171e92e85f17e672dbbf9d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sun, 24 Mar 2024 10:50:01 +0800 Subject: [PATCH] update --- src/FluFramelessHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FluFramelessHelper.cpp b/src/FluFramelessHelper.cpp index e90171d5..14d3ac0f 100644 --- a/src/FluFramelessHelper.cpp +++ b/src/FluFramelessHelper.cpp @@ -335,7 +335,7 @@ void FluFramelessHelper::componentComplete(){ _nativeEvent =new FramelessEventFilter(this); qApp->installNativeEventFilter(_nativeEvent); HWND hwnd = reinterpret_cast(window->winId()); - DWORD style = ::GetWindowLong(hwnd, GWL_STYLE); + DWORD style = ::GetWindowLongPtr(hwnd, GWL_STYLE); if(resizeable()){ ::SetWindowLongPtr(hwnd, GWL_STYLE, style | WS_MAXIMIZEBOX | WS_THICKFRAME); }else{