I have made an application using Windows API and have used the resource folder to change the icon to a custom one I made. Now the program is using my icon on the desktop how
If you use RegisterClassEx
to register your window class, the WNDCLASSEX
structure has a hIconSm
field that lets you specify a small icon. If you go this way, don't forget to also initialize the cbSize
field.
Alternatively, you can assign a small icon to a window after creation using the WM_SETICON
message.