From 72610da66e182ed11c40abe8efbbe71e03116032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Tue, 19 Dec 2023 20:28:14 +0800 Subject: [PATCH] update --- src/FluFramelessHelper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FluFramelessHelper.cpp b/src/FluFramelessHelper.cpp index 4568529c..6f761764 100644 --- a/src/FluFramelessHelper.cpp +++ b/src/FluFramelessHelper.cpp @@ -212,12 +212,11 @@ void FluFramelessHelper::componentComplete(){ _nativeEvent =new FramelessEventFilter(_window); qApp->installNativeEventFilter(_nativeEvent); HWND hwnd = reinterpret_cast(_window->winId()); - DWORD style = GetWindowLongPtr(hwnd,GWL_STYLE); - SetWindowLongPtr(hwnd, GWL_STYLE, style | WS_THICKFRAME | WS_CAPTION &~ WS_SYSMENU); SetWindowPos(hwnd,nullptr,0,0,0,0,SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOSIZE |SWP_FRAMECHANGED); showShadow(hwnd); #endif _stayTop = QQmlProperty(_window,"stayTop"); + _onStayTopChange(); _stayTop.connectNotifySignal(this,SLOT(_onStayTopChange())); _screen = QQmlProperty(_window,"screen"); _screen.connectNotifySignal(this,SLOT(_onScreenChanged()));