mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Correctly add icon to window on Windows
This commit is contained in:
committed by
Lea Anthony
parent
7a3ab27977
commit
030b954971
@@ -1,2 +1,2 @@
|
||||
100 ICON "$NAME$.ico"
|
||||
100 24 "$NAME$.exe.manifest"
|
||||
110 24 "$NAME$.exe.manifest"
|
||||
@@ -1410,6 +1410,8 @@ struct webview_priv
|
||||
wc.hInstance = hInstance;
|
||||
wc.lpfnWndProc = wndproc;
|
||||
wc.lpszClassName = classname;
|
||||
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(100));
|
||||
wc.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(100));
|
||||
RegisterClassEx(&wc);
|
||||
|
||||
style = WS_OVERLAPPEDWINDOW;
|
||||
|
||||
Reference in New Issue
Block a user