Родитель
0c287d0424
Коммит
3ca5b0ce23
|
@ -424,12 +424,14 @@ void NativeWindowViews::SetResizable(bool resizable) {
|
||||||
// WS_MAXIMIZEBOX => Maximize button
|
// WS_MAXIMIZEBOX => Maximize button
|
||||||
// WS_MINIMIZEBOX => Minimize button
|
// WS_MINIMIZEBOX => Minimize button
|
||||||
// WS_THICKFRAME => Resize handle
|
// WS_THICKFRAME => Resize handle
|
||||||
DWORD style = ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE);
|
if (!transparent()) {
|
||||||
if (resizable)
|
DWORD style = ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE);
|
||||||
style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME;
|
if (resizable)
|
||||||
else
|
style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME;
|
||||||
style = (style & ~(WS_MAXIMIZEBOX | WS_THICKFRAME)) | WS_MINIMIZEBOX;
|
else
|
||||||
::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, style);
|
style = (style & ~(WS_MAXIMIZEBOX | WS_THICKFRAME)) | WS_MINIMIZEBOX;
|
||||||
|
::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, style);
|
||||||
|
}
|
||||||
#elif defined(USE_X11)
|
#elif defined(USE_X11)
|
||||||
if (resizable != resizable_) {
|
if (resizable != resizable_) {
|
||||||
// On Linux there is no "resizable" property of a window, we have to set
|
// On Linux there is no "resizable" property of a window, we have to set
|
||||||
|
|
Загрузка…
Ссылка в новой задаче