You can see the old KB318876 : How To Create an Alpha Blended Cursor or Icon in Windows XP
How to use function `CreateIconIndirect` with 32 bit bitmaps?
László Szerémi
35
Reputation points
Most icon related documentation is still written with the assumption that the user will want to create a black and white icon, even though we are in the year 2024.
A 32 bit bitmap has both the color information and the transparency mask in the same chunk, and I cannot find information on what to do in case of 32 bit bitmaps. Do I need to separate the alpha channel from the rest of the pixel data? And do I need to convert that transparency mask to 24 bits alongside with the image data?