I’ve followed the steps from this question:
Higher color depth for MFC toolbar icons?
The code works. But I have another problem – any disabled buttons are just grey boxes.
Once they are enabled – they are exactly as they should be.
I suspect that the CToolBar doesn’t know how to grey out the supplied images – can anyone help?
thanks in advance.
CToolBar actually accepts up to three imagelists each to handle the normal, disabled and highlighted states of the button.
To accomplish what I need – just normal and disabled button states. I need two images. One with normal coloured icons and the other with greyed out icons.
Add the images as Bitmap resources to your project – amend and make note of the IDs
Create two imagelists and set them accordingly: (m_wndToolBar is the toolbar in my project)
To set the highlighted versions of the toolbar:
et voila!