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;