diff options
author | crupest <crupest@outlook.com> | 2018-11-10 16:27:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-10 16:27:24 +0800 |
commit | 29e2bd393f8d72ba92df4e9d706c6add928f89fb (patch) | |
tree | fb03b95b2452741039e0cda1a8032bb7491d0140 /src/application.cpp | |
parent | 09be0d0c86a789d568addc3153917aa604e4c7d7 (diff) | |
download | cru-29e2bd393f8d72ba92df4e9d706c6add928f89fb.tar.gz cru-29e2bd393f8d72ba92df4e9d706c6add928f89fb.tar.bz2 cru-29e2bd393f8d72ba92df4e9d706c6add928f89fb.zip |
Make god window a message-only window.
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/application.cpp b/src/application.cpp index 9a98854c..fa71c37e 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -4,7 +4,6 @@ #include "timer.hpp" #include "ui/window.hpp" #include "ui/cursor.hpp" -#include "ui/ui_manager.hpp" namespace cru { constexpr auto god_window_class_name = L"GodWindowClass"; @@ -27,7 +26,7 @@ namespace cru { return DefWindowProc(hWnd, uMsg, wParam, lParam); } - GodWindow::GodWindow(Application* application) : application_(application) + GodWindow::GodWindow(Application* application) { const auto h_instance = application->GetInstanceHandle(); @@ -37,7 +36,7 @@ namespace cru { god_window_class_name, L"", 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, - nullptr, nullptr, h_instance, nullptr + HWND_MESSAGE, nullptr, h_instance, nullptr ); if (hwnd_ == nullptr) |