From ebe3a648c56f1f50ba9bebbcd7e26a85f40ce43c Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 5 Dec 2020 17:25:15 +0100 Subject: [PATCH] Platform/Win32/Win32Display: Implement setDecoration() --- source/Platform/Win32/Win32Display.cpp | 5 +++++ source/Platform/Win32/Win32Display.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/source/Platform/Win32/Win32Display.cpp b/source/Platform/Win32/Win32Display.cpp index de68f77..c38004c 100644 --- a/source/Platform/Win32/Win32Display.cpp +++ b/source/Platform/Win32/Win32Display.cpp @@ -123,6 +123,11 @@ void Win32Display::setVisible(bool visible) ::ShowWindow(m_handle, visible ? SW_SHOW : SW_HIDE); } +void Win32Display::setDecoration(unsigned decoration) +{ + ::SetWindowLong(m_handle, GWL_STYLE, getWin32Flags(decoration)); +} + void Win32Display::minimize() { ::ShowWindow(m_handle, SW_MINIMIZE); diff --git a/source/Platform/Win32/Win32Display.h b/source/Platform/Win32/Win32Display.h index 80c7cc3..ccdaecc 100644 --- a/source/Platform/Win32/Win32Display.h +++ b/source/Platform/Win32/Win32Display.h @@ -33,6 +33,8 @@ public : virtual void setVisible(bool visible); + virtual void setDecoration(unsigned decoration); + virtual void minimize(); virtual void maximize();