diff options
author | crupest <crupest@outlook.com> | 2021-11-21 15:18:28 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-21 15:18:28 +0800 |
commit | eeb1f55d5a483720441c3f44e83d02cc882a3bc0 (patch) | |
tree | e8d8a49d26602ac3f8097aa4d2fff65d70bbfba5 /src/ui/controls/Popup.cpp | |
parent | 2b28ec296fdc72050569b9fedc1664ada7791497 (diff) | |
download | cru-eeb1f55d5a483720441c3f44e83d02cc882a3bc0.tar.gz cru-eeb1f55d5a483720441c3f44e83d02cc882a3bc0.tar.bz2 cru-eeb1f55d5a483720441c3f44e83d02cc882a3bc0.zip |
...
Diffstat (limited to 'src/ui/controls/Popup.cpp')
-rw-r--r-- | src/ui/controls/Popup.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/controls/Popup.cpp b/src/ui/controls/Popup.cpp index ae6ac1d2..b386165b 100644 --- a/src/ui/controls/Popup.cpp +++ b/src/ui/controls/Popup.cpp @@ -8,11 +8,9 @@ #include <memory> namespace cru::ui::controls { -Popup::Popup(Control* attached_control) - : RootControl( - attached_control, - host::CreateWindowParams{ - nullptr, platform::gui::CreateWindowFlags::NoCaptionAndBorder}) { +Popup::Popup(Control* attached_control) : RootControl(attached_control) { + GetWindowHost()->GetNativeWindow()->SetStyleFlag( + cru::platform::gui::WindowStyleFlags::NoCaptionAndBorder); SetGainFocusOnCreateAndDestroyWhenLoseFocus(true); } |