From eebec8297a8538c40518ceee043edfc41e3b1343 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 4 Sep 2018 20:24:07 +0800 Subject: ... --- CruUI/ui/control.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CruUI/ui/control.cpp') diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp index e2e6f98b..ac338e95 100644 --- a/CruUI/ui/control.cpp +++ b/CruUI/ui/control.cpp @@ -199,6 +199,12 @@ namespace cru { device_context->SetTransform(old_transform); } + void Control::Repaint() + { + if (window_ != nullptr) + window_->Repaint(); + } + bool Control::RequestFocus() { auto window = GetWindow(); -- cgit v1.2.3