go-webview2
go-webview2 copied to clipboard
[Feature Request] Customize title bar icon
Is there a way to customize the title bar icon? I only have one way to remove the title icon (But based on a version of my fork a long time ago) link
How do you propose it would work? You'd normally need to use winres
or similar asset compiler to add in the data to the binary. I've done this by using webview2 as a component and treating it as an external concern.
I think it should be possible to use user32:CreateIcon
to get an HICON
handle for an image in-memory, then set it to the hIcon
member of the WNDCLASSEX
structure that is registered in Create.
Not sure what the API for this might look like, though.
I believe this was fixed in #43, and can be done using NewWithOptions
. You do need to embed the icon into your binary, though.