Correctly add icon to window on Windows

This commit is contained in:
Dario Emerson
2020-05-25 11:48:00 +02:00
committed by Lea Anthony
parent 7a3ab27977
commit 030b954971
2 changed files with 3 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
100 ICON "$NAME$.ico" 100 ICON "$NAME$.ico"
100 24 "$NAME$.exe.manifest" 110 24 "$NAME$.exe.manifest"

View File

@@ -1410,6 +1410,8 @@ struct webview_priv
wc.hInstance = hInstance; wc.hInstance = hInstance;
wc.lpfnWndProc = wndproc; wc.lpfnWndProc = wndproc;
wc.lpszClassName = classname; wc.lpszClassName = classname;
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(100));
wc.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(100));
RegisterClassEx(&wc); RegisterClassEx(&wc);
style = WS_OVERLAPPEDWINDOW; style = WS_OVERLAPPEDWINDOW;