mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-02-02 13:52:55 +08:00
fix: on windows, the caption is visibled when window resizing
This commit is contained in:
parent
85991a6c50
commit
a2258277d5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user