MCPcopy Create free account
hub / github.com/cinience/RedisStudio / SetIcon

Method SetIcon

DuiLib/Core/UIBase.cpp:361–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361void CWindowWnd::SetIcon(UINT nRes)
362{
363 HICON hIcon = (HICON)::LoadImage(CPaintManagerUI::GetInstance(), MAKEINTRESOURCE(nRes), IMAGE_ICON,
364 (::GetSystemMetrics(SM_CXICON) + 15) & ~15, (::GetSystemMetrics(SM_CYICON) + 15) & ~15, // ��ֹ��DPI��ͼ��ģ��
365 LR_DEFAULTCOLOR);
366 ASSERT(hIcon);
367 ::SendMessage(m_hWnd, WM_SETICON, (WPARAM) TRUE, (LPARAM) hIcon);
368
369 hIcon = (HICON)::LoadImage(CPaintManagerUI::GetInstance(), MAKEINTRESOURCE(nRes), IMAGE_ICON,
370 (::GetSystemMetrics(SM_CXICON) + 15) & ~15, (::GetSystemMetrics(SM_CYICON) + 15) & ~15, // ��ֹ��DPI��ͼ��ģ��
371 LR_DEFAULTCOLOR);
372 ASSERT(hIcon);
373 ::SendMessage(m_hWnd, WM_SETICON, (WPARAM) FALSE, (LPARAM) hIcon);
374}
375
376bool CWindowWnd::RegisterWindowClass()
377{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected