diff options
author | crupest <crupest@outlook.com> | 2021-11-20 22:43:30 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-20 22:43:30 +0800 |
commit | a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c (patch) | |
tree | 32c01c22e21742ae0c9febb2cbc26339f99eec1d /src/ui/controls/Popup.cpp | |
parent | 1a53ed0791d9793ed8030d3a44e833e5e7c4542b (diff) | |
download | cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.gz cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.bz2 cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.zip |
...
Diffstat (limited to 'src/ui/controls/Popup.cpp')
-rw-r--r-- | src/ui/controls/Popup.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/ui/controls/Popup.cpp b/src/ui/controls/Popup.cpp index 515c7b31..ae6ac1d2 100644 --- a/src/ui/controls/Popup.cpp +++ b/src/ui/controls/Popup.cpp @@ -8,19 +8,13 @@ #include <memory> namespace cru::ui::controls { -Popup::Popup(Control* attached_control) : RootControl(attached_control) { +Popup::Popup(Control* attached_control) + : RootControl( + attached_control, + host::CreateWindowParams{ + nullptr, platform::gui::CreateWindowFlags::NoCaptionAndBorder}) { SetGainFocusOnCreateAndDestroyWhenLoseFocus(true); } Popup::~Popup() = default; - -gsl::not_null<platform::gui::INativeWindow*> Popup::CreateNativeWindow( - gsl::not_null<host::WindowHost*> host, - platform::gui::INativeWindow* parent) { - auto window = host->CreateNativeWindow( - {parent, platform::gui::CreateWindowFlags::NoCaptionAndBorder}); - - return window; -} - } // namespace cru::ui::controls |