From bfbe1b31322030d0af6f4d010f578c0b3b3dde21 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 12 Nov 2021 09:45:23 +0800 Subject: *split window --- Editor/GUI/ContainerWindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Editor/GUI/ContainerWindow.cpp') diff --git a/Editor/GUI/ContainerWindow.cpp b/Editor/GUI/ContainerWindow.cpp index 99fa6cb..59cd008 100644 --- a/Editor/GUI/ContainerWindow.cpp +++ b/Editor/GUI/ContainerWindow.cpp @@ -431,6 +431,16 @@ void ContainerWindow::Close() SendMessage(m_Window, WM_CLOSE, 0, 0); } +Vector2f ContainerWindow::GetSize() +{ + RECT rect; + GetClientRect(m_Window, &rect); + Vector2f size; + size.x = rect.right - rect.left; + size.y = rect.bottom - rect.top; + return size; +} + void ContainerWindow::OnRectChanged() { -- cgit v1.1-26-g67d0