diff options
author | 杨宇千 <crupest@outlook.com> | 2018-12-06 21:32:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 21:32:58 +0800 |
commit | b028e74a48de181ca078ad3bf4ababf4fa146cd3 (patch) | |
tree | 5b15e3f97c67e81ad99fb531f30681300a79b5a9 /src/ui/window.hpp | |
parent | f0e2b2d3763dd100a5e9d6cda566724d2b7da965 (diff) | |
parent | de5d84f64ba7673a5155aab67244fedc04753b94 (diff) | |
download | cru-b028e74a48de181ca078ad3bf4ababf4fa146cd3.tar.gz cru-b028e74a48de181ca078ad3bf4ababf4fa146cd3.tar.bz2 cru-b028e74a48de181ca078ad3bf4ababf4fa146cd3.zip |
Merge pull request #36 from crupest/tree
Enhance tree.
Diffstat (limited to 'src/ui/window.hpp')
-rw-r--r-- | src/ui/window.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/window.hpp b/src/ui/window.hpp index 26d3fe40..e96d4d92 100644 --- a/src/ui/window.hpp +++ b/src/ui/window.hpp @@ -85,7 +85,7 @@ namespace cru::ui - class Window final : public Control + class Window final : public SingleChildControl { friend class WindowManager; public: @@ -102,6 +102,7 @@ namespace cru::ui explicit Window(tag_overlapped_constructor); Window(tag_popup_constructor, Window* parent, bool caption); + void BeforeCreateHwnd(); void AfterCreateHwnd(WindowManager* window_manager); public: @@ -188,7 +189,7 @@ namespace cru::ui //*************** region: position and size *************** //Always return (0, 0) for a window. - Point GetPositionRelative() override final; + Point GetOffset() override final; //Get the size of client area for a window. Size GetSize() override final; |