summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_win32.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-10-19 11:20:12 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-10-19 11:20:12 +0200
commitc4f69d2af7d995eb0dd4592c18dc2f6b930bd193 (patch)
tree05118efa264bb2623719cfa1d579ca1ed1cf1980 /plugingui/nativewindow_win32.cc
parentae63d465c7252602500c4de5aa2d2a99df852bfb (diff)
Make window fixed size.
Diffstat (limited to 'plugingui/nativewindow_win32.cc')
-rw-r--r--plugingui/nativewindow_win32.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc
index 935cd04..89844da 100644
--- a/plugingui/nativewindow_win32.cc
+++ b/plugingui/nativewindow_win32.cc
@@ -320,6 +320,14 @@ GUI::NativeWindowWin32::~NativeWindowWin32()
free(m_className);
}
+void GUI::NativeWindowWin32::setFixedSize(int width, int height)
+{
+ resize(width, height);
+ LONG style = GetWindowLong(m_hwnd, GWL_STYLE);
+ style &= ~(WS_THICKFRAME | WS_MAXIMIZEBOX);
+ SetWindowLong(m_hwnd, GWL_STYLE, style);
+}
+
void GUI::NativeWindowWin32::resize(int width, int height)
{
SetWindowPos(m_hwnd, NULL, -1, -1, (int)width, (int)height, SWP_NOMOVE);