| 359 | } |
| 360 | |
| 361 | void 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 | |
| 376 | bool CWindowWnd::RegisterWindowClass() |
| 377 | { |
nothing calls this directly
no outgoing calls
no test coverage detected