In a win32 application, I want to have a button with an icon that looks gray when the button is disabled and “brighter” when the mouse hesitates.
I know that I can create three bitmaps using the icon editor, but since the icon can be selected and loaded from disk, I would like to create the other two versions programmatically.
So, starting with the image descriptor, I would like to: - Create a new image with all the colors converted to gray.
- Create a new image with all colors shifted to white or yellow.
Can this be done using win32 api calls?
Examples in any language will be appreciated.
source
share