diff options
author | crupest <crupest@outlook.com> | 2018-11-20 21:02:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-20 21:03:07 +0800 |
commit | e8589550140d20b675fa7736441d7cdd1daee4d7 (patch) | |
tree | 50b61f34dd63e235a6c89b84511f3910b566af00 /src/ui/cursor.cpp | |
parent | 30333294fcd5917a9f3572f0c4c6dfc2ec429a3c (diff) | |
download | cru-e8589550140d20b675fa7736441d7cdd1daee4d7.tar.gz cru-e8589550140d20b675fa7736441d7cdd1daee4d7.tar.bz2 cru-e8589550140d20b675fa7736441d7cdd1daee4d7.zip |
Add clip to padding.
Diffstat (limited to 'src/ui/cursor.cpp')
-rw-r--r-- | src/ui/cursor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/cursor.cpp b/src/ui/cursor.cpp index cf88cd25..91b94b16 100644 --- a/src/ui/cursor.cpp +++ b/src/ui/cursor.cpp @@ -21,5 +21,12 @@ namespace cru::ui Cursor::Ptr arrow{}; Cursor::Ptr hand{}; Cursor::Ptr i_beam{}; + + void LoadSystemCursors() + { + arrow = std::make_shared<Cursor>(::LoadCursorW(nullptr, IDC_ARROW), false); + hand = std::make_shared<Cursor>(::LoadCursorW(nullptr, IDC_HAND), false); + i_beam = std::make_shared<Cursor>(::LoadCursorW(nullptr, IDC_IBEAM), false); + } } } |