| 7 | #include "window.hpp" |
| 8 | |
| 9 | void WindowClass::LoadIcons(const wchar_t *iconResource) |
| 10 | { |
| 11 | if (iconResource) |
| 12 | { |
| 13 | HresultVerify(LoadIconMetric(m_hInstance, iconResource, LIM_LARGE, m_hIcon.put()), spdlog::level::warn, L"Failed to load large window class icon."); |
| 14 | HresultVerify(LoadIconMetric(m_hInstance, iconResource, LIM_SMALL, m_hIconSmall.put()), spdlog::level::warn, L"Failed to load small window class icon."); |
| 15 | } |
| 16 | else |
| 17 | { |
| 18 | m_hIcon.reset(); |
| 19 | m_hIconSmall.reset(); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | void WindowClass::Unregister() |
| 24 | { |