SetDockingWindowIcons 속성창 아이콘 세팅

By | 2014년 6월 23일

PropertiesWnd_ICON

SetDockingWindowIcons(theApp.m_bHiColorIcons);

void CMainFrame::SetDockingWindowIcons(BOOL bHiColorIcons)
{
    HICON hPropertiesBarIcon = (HICON) ::LoadImage(::AfxGetResourceHandle(), MAKEINTRESOURCE(bHiColorIcons ? IDI_PROPERTIES_WND_HC : IDI_PROPERTIES_WND), IMAGE_ICON, ::GetSystemMetrics(SM_CXSMICON), ::GetSystemMetrics(SM_CYSMICON), 0);
	m_wndProperties.SetIcon(hPropertiesBarIcon, FALSE);
}
Print Friendly, PDF & Email
Category: C++