How to change the title bar icon using winapi

后端 未结 1 609
余生分开走
余生分开走 2020-12-20 03:30

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

相关标签:
1条回答
  • 2020-12-20 03:50

    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.

    0 讨论(0)
提交回复
热议问题