We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i found some code like this ,but i don't known how to use it. SetClassLong(hwnd,GCL_HICON,(LONG)LoadIcon(hinstance, IDI_ICON ));
SetClassLong(hwnd,GCL_HICON,(LONG)LoadIcon(hinstance, IDI_ICON ));
The text was updated successfully, but these errors were encountered:
Hi, rinetd!
if you use lxn/walk and not directly use lxn/win, you may load the icon file and put it to window like this;
icon, iconErr := walk.Resources.Icon("foo.ico") err := MainWindow{ AssignTo: &mainWin, Title: "MainWindow", Icon: icon, (snip) }.Create()
if you want to load icon from resources, first you have to rsrc
rsrc -arch amd64 -manifest foo.exe.manifest -ico foo.ico -o rsrc.syso
and, load it like this:
icon, iconErr := walk.Resources.Icon("3")
Sorry, something went wrong.
You can do it like this, too:
err := MainWindow{ AssignTo: &mainWin, Title: "MainWindow", Icon: "foo.ico", (snip) }.Create()
No branches or pull requests
i found some code like this ,but i don't known how to use it.
SetClassLong(hwnd,GCL_HICON,(LONG)LoadIcon(hinstance, IDI_ICON ));
The text was updated successfully, but these errors were encountered: