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

Setting the IDI_APPLICATION icon? #60

Open
precisionpete opened this issue Jun 23, 2022 · 1 comment
Open

Setting the IDI_APPLICATION icon? #60

precisionpete opened this issue Jun 23, 2022 · 1 comment

Comments

@precisionpete
Copy link

I have a Go application on Windows 10+ that is using WebView for the GUI. It works great but I am having trouble setting the Window icon. This is not the icon on the EXE. That part works great. But I need to set the icon on the top left corner of the windows that WebView creates. In the resource file, it is referred to as the IDI_APPLICATION icon (32512). 100 is the EXE icon I believe.

See: https://github.com/webview/webview

e.g. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadiconw

100  ICON "icons\\main.ico"
32512 ICON "icons\\small.ico"

Does goversioninfo have an undocumented entry to set this?

Unfortunately, I'm not a Win32 expert.
Thanks

@packet-sent
Copy link

If you are using a versioninfo.json file and put the icon path properly the icon should be on the exe and on the program when opened. It works perfectly for my CLI & GUI program.
image

image

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

2 participants