MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / LoadIcons

Method LoadIcons

TranslucentTB/windows/windowclass.cpp:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "window.hpp"
8
9void 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
23void WindowClass::Unregister()
24{

Callers

nothing calls this directly

Calls 1

putMethod · 0.80

Tested by

no test coverage detected