diff options
author | crupest <crupest@outlook.com> | 2018-09-23 21:07:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-23 21:07:19 +0800 |
commit | 800c98a732f82df09a98fddba91eddb5d675318d (patch) | |
tree | bd7722bebd51e8bb47e79468d70c0d99ef0df9ac /CruUI/main.cpp | |
parent | b7833b2d3243b008a2a726a72408f818070d8238 (diff) | |
parent | 796ba6e1e816ec87a106f2f7b501e38c99f059e1 (diff) | |
download | cru-800c98a732f82df09a98fddba91eddb5d675318d.tar.gz cru-800c98a732f82df09a98fddba91eddb5d675318d.tar.bz2 cru-800c98a732f82df09a98fddba91eddb5d675318d.zip |
Merge branch 'master' into textboxdev
Diffstat (limited to 'CruUI/main.cpp')
-rw-r--r-- | CruUI/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CruUI/main.cpp b/CruUI/main.cpp index 7f5c1d1c..56d42894 100644 --- a/CruUI/main.cpp +++ b/CruUI/main.cpp @@ -5,6 +5,7 @@ #include "ui/controls/toggle_button.h" #include "ui/controls/button.h" #include "ui/controls/margin_container.h" +#include "ui/events/ui_event.h" using cru::String; @@ -29,6 +30,15 @@ int APIENTRY wWinMain( Application application(hInstance); Window window; + window.native_message_event.AddHandler([](cru::ui::events::WindowNativeMessageEventArgs& args) + { + if (args.GetWindowMessage().msg == WM_PAINT) + { + OutputDebugStringW(L"Paint!\n"); + //args.SetResult(0); + } + }); + /* // test1 cru::ui::controls::TextBlock text_block; |