aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-05 21:34:12 +0800
committercrupest <crupest@outlook.com>2018-11-05 21:34:12 +0800
commitad9e8897335b9cb48c8f13bd35eabfae7543f8ee (patch)
treeb6a08e87bdbce47feb4ba1375c95fae49d64580a /src
parent17baaa03e0ff49ec1921607e6a439c1c6487883c (diff)
downloadcru-ad9e8897335b9cb48c8f13bd35eabfae7543f8ee.tar.gz
cru-ad9e8897335b9cb48c8f13bd35eabfae7543f8ee.tar.bz2
cru-ad9e8897335b9cb48c8f13bd35eabfae7543f8ee.zip
...
Diffstat (limited to 'src')
-rw-r--r--src/ui/window.cpp5
-rw-r--r--src/ui/window.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/window.cpp b/src/ui/window.cpp
index 323a4307..947516e0 100644
--- a/src/ui/window.cpp
+++ b/src/ui/window.cpp
@@ -115,6 +115,11 @@ namespace cru
});
}
+ StringView Window::GetControlType() const
+ {
+ return control_type;
+ }
+
void Window::Close() {
if (IsWindowValid())
DestroyWindow(hwnd_);
diff --git a/src/ui/window.h b/src/ui/window.h
index 15b3db57..b3e3505b 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -83,6 +83,8 @@ namespace cru {
{
friend class WindowManager;
public:
+ static constexpr auto control_type = L"Window";
+
Window();
Window(const Window& other) = delete;
Window(Window&& other) = delete;