choc
choc copied to clipboard
WebView window icon
Is there a way within choc/WebView to set the icon for the WebView window?
It'd need to be supported by the DesktopWindow class, but it's not something I've looked into yet.
One solution that doesn't require changes to DesktopWindow is to include a windows resource into your app. Resources are compiled by the program rc.exe producing eg .res files which can be included in your app's link line link an .obj file.
Here's the trivial example for my case:
/**
* App resource file
* contains bitmap for widgets and cursors
*/
1 ICON "icon.ico"
32512 ICON "icon.ico"