[Feature Request] Customize title bar icon
Tim-Paik opened this issue · 3 comments
Tim-Paik commented
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
leaanthony commented
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.
jchv commented
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.