From a2258277d56137bcc76d6fb71f569b3aa8d97673 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Tue, 26 Mar 2024 16:42:56 +0800 Subject: [PATCH] fix: on windows, the caption is visibled when window resizing --- DSView/pv/winnativewidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/DSView/pv/winnativewidget.cpp b/DSView/pv/winnativewidget.cpp index cbb1423b..718b1503 100644 --- a/DSView/pv/winnativewidget.cpp +++ b/DSView/pv/winnativewidget.cpp @@ -101,7 +101,6 @@ WinNativeWidget::WinNativeWidget(const int x, const int y, const int width, assert(false); } - SetWindowLongW(_hWnd, GWL_STYLE, GetWindowLongW(_hWnd, GWL_STYLE) & ~WS_CAPTION); SetWindowLongPtr(_hWnd, GWLP_USERDATA, reinterpret_cast(this)); SetWindowPos(_hWnd, NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE);