fix: on windows, the caption is visibled when window resizing

This commit is contained in:
dreamsourcelabTAI 2024-03-26 16:42:56 +08:00
parent 85991a6c50
commit a2258277d5

View File

@ -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<LONG_PTR>(this));
SetWindowPos(_hWnd, NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE);