Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView window icon #35

Open
daveboulden opened this issue Dec 11, 2023 · 2 comments
Open

WebView window icon #35

daveboulden opened this issue Dec 11, 2023 · 2 comments

Comments

@daveboulden
Copy link

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

image

@julianstorer
Copy link
Collaborator

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

@dbadb
Copy link

dbadb commented Feb 19, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants