| 21 | } |
| 22 | |
| 23 | void WindowClass::Unregister() |
| 24 | { |
| 25 | if (!UnregisterClass(atom(), m_hInstance)) |
| 26 | { |
| 27 | LastErrorHandle(spdlog::level::info, L"Failed to unregister window class."); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | WindowClass::WindowClass(WNDPROC procedure, Util::null_terminated_wstring_view className, const wchar_t *iconResource, HINSTANCE hInstance, unsigned int style, HBRUSH brush, HCURSOR cursor) : |
| 32 | m_hInstance(hInstance) |