The structure ICONINFO has two fields hbmMask & hbmColor. These fields are of type HIBITMAP.
I want to convert bitmap to icon. When I load bitmap file, bitmap handle HIBITMAP is returned. Using this, how can I get values for hbmMask & hbmColor which represent bitmask bitmap & color bitmap. If I set both filieds to HIBITMAP of the loaded bitmap, I get icon but without colors.
Can we extract the proper values for these fields from HIBITMAP?