choc icon indicating copy to clipboard operation
choc copied to clipboard

WebView window icon

Open daveboulden opened this issue 2 years ago • 2 comments

Is there a way within choc/WebView to set the icon for the WebView window?

image

daveboulden avatar Dec 11 '23 15:12 daveboulden

It'd need to be supported by the DesktopWindow class, but it's not something I've looked into yet.

julianstorer avatar Dec 11 '23 17:12 julianstorer

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"

dbadb avatar Feb 19 '24 22:02 dbadb