My suggestion, if you want to use PNG and be able to change the icon, is to use FreeImage to download it. Then you can use FreeImage to easily convert it to standard HBITMAP.
If you're comfortable using the actual icon file, you can do the following after creating the window:
HANDLE hIcon = LoadImage(0, _T("imagepath/image.ico"), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_LOADFROMFILE); if (hIcon) {
You can probably call a similar function from your getAdditionalClassInfo and set it to hIcon .
source share