aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/window.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-08 23:31:20 +0800
committercrupest <crupest@outlook.com>2018-09-08 23:31:20 +0800
commit74031db4b8c366531db5be8fa8d765483ab377b0 (patch)
tree558ed98f22eb182b7d7017e5a51bdb14d5e92268 /CruUI/ui/window.cpp
parent7cbe80c19170c8c742fd280c555eafbd2a51b4da (diff)
downloadcru-74031db4b8c366531db5be8fa8d765483ab377b0.tar.gz
cru-74031db4b8c366531db5be8fa8d765483ab377b0.tar.bz2
cru-74031db4b8c366531db5be8fa8d765483ab377b0.zip
...
Diffstat (limited to 'CruUI/ui/window.cpp')
-rw-r--r--CruUI/ui/window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/CruUI/ui/window.cpp b/CruUI/ui/window.cpp
index 4ab38cad..2c731a1e 100644
--- a/CruUI/ui/window.cpp
+++ b/CruUI/ui/window.cpp
@@ -136,7 +136,7 @@ namespace cru
});
}
- Window::Window() : layout_manager_(new WindowLayoutManager()), control_list_({ this }) {
+ Window::Window() : Control(true), layout_manager_(new WindowLayoutManager()), control_list_({ this }) {
auto app = Application::GetInstance();
hwnd_ = CreateWindowEx(0,
app->GetWindowManager()->GetGeneralWindowClass()->GetName(),
@@ -342,7 +342,7 @@ namespace cru
void Window::SetSize(const Size & size)
{
- SetClientSize(size);
+
}
void Window::RefreshControlList() {
@@ -429,6 +429,7 @@ namespace cru
void Window::OnResizeInternal(int new_width, int new_height) {
render_target_->ResizeBuffer(new_width, new_height);
+ Relayout();
}
void Window::OnSetFocusInternal()