I use the Win32 API C ++ Property Sheets in my application, and the icons used in the page headers are of poor quality compared to the main title, for example, or other icons in the application.
http://i.imgur.com/goiF7Je.png
In the attached image, both house icons are on the same resource.
Is there any way to change it to 32-bit color icons?
const int Sheets = 2; PROPSHEETPAGE psp[Sheets]; for (int i=0; i<Sheets; ++i) { psp[i].dwSize = sizeof(PROPSHEETPAGE); psp[i].dwFlags = PSP_USEICONID | PSP_USETITLE; psp[i].lParam = 0; psp[i].pfnCallback = NULL; psp[i].hInstance = m_hInst; } psp[0].pszTemplate = MAKEINTRESOURCE(IDDNEW_IS0); psp[0].pszIcon = MAKEINTRESOURCE(IDI_GENERAL_TAB); psp[0].pfnDlgProc = IntegrationServer::tabGeneral; psp[0].pszTitle = "General"; psp[1].pszTemplate = MAKEINTRESOURCE(IDDNEW_IS1); psp[1].pszIcon = MAKEINTRESOURCE(IDI_GENERAL_REQUESTS); psp[1].pfnDlgProc = IntegrationServer::tabRequests; psp[1].pszTitle = "Requests"; PROPSHEETHEADER psh; psh.dwSize = sizeof(PROPSHEETHEADER); psh.dwFlags = PSH_USEICONID | PSH_PROPSHEETPAGE | PSH_NOCONTEXTHELP | PSH_NOAPPLYNOW; psh.hInstance = m_hInst; psh.pszIcon = MAKEINTRESOURCE(IDI_GENERAL_TAB); psh.pszCaption = (LPSTR) "Integration Server configuration"; psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE); psh.nStartPage = 0; psh.ppsp = (LPCPROPSHEETPAGE) &psp; psh.hwndParent = m_hWnd; PropertySheet(&psh);
source share