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

Default icon id should be 32512 #28

Closed
lucasfernog opened this issue Dec 5, 2020 · 2 comments · May be fixed by #39
Closed

Default icon id should be 32512 #28

lucasfernog opened this issue Dec 5, 2020 · 2 comments · May be fixed by #39

Comments

@lucasfernog
Copy link

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadicona

When using the LoadIcon API, IDI_APPLICATION looks for id 32512: MAKEINTRESOURCE(32512)

@mxre
Copy link
Owner

mxre commented Sep 28, 2021

Every Example I've seen uses id 1 for the program icon in the resource files. Additionally I've looked at several exes on my disks and almost all use 1 as the primary icon id.
You can use LoadIcon with the Id 1, or alternatively add an Icon with the Id of 32512 using WindowResource:set_icon_with_id

@mxre mxre closed this as completed Sep 28, 2021
@zedseven
Copy link

zedseven commented Sep 28, 2021

All executables built by Visual Studio/.NET with embedded icons use the icon ID 32512.
I would consider Visual Studio to be a canonical source of Microsoft standards when it comes to default icon ID.

image
(using IconViewer to check icon ID)

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

Successfully merging a pull request may close this issue.

3 participants