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{