editor: add an application icon
The ICO was created from contrib/logo.svg by exporting a PNG from Inkscape, and converting the PNG online at with iconverticons.com
This commit is contained in:
parent
70bd0d006d
commit
8c842edff3
BIN
editor/appicon.ico
Normal file
BIN
editor/appicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 345 KiB |
@ -518,20 +518,20 @@ static LRESULT CALLBACK mainWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA
|
||||
static ATOM registerMainWindowClass(HINSTANCE hInstance)
|
||||
{
|
||||
WNDCLASSEXW wc;
|
||||
|
||||
|
||||
wc.cbSize = sizeof(wc);
|
||||
wc.style = 0;
|
||||
wc.lpfnWndProc = mainWindowProc;
|
||||
wc.cbClsExtra = 0;
|
||||
wc.cbWndExtra = 0;
|
||||
wc.hInstance = hInstance;
|
||||
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
|
||||
wc.hIcon = LoadIcon(hInstance, IDI_APPLICATION);
|
||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wc.hbrBackground = (HBRUSH)0;
|
||||
wc.lpszMenuName = MAKEINTRESOURCEW(IDR_MENU);
|
||||
wc.lpszClassName = mainWindowClassName;
|
||||
wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
|
||||
|
||||
wc.hIconSm = wc.hIcon;
|
||||
|
||||
return RegisterClassExW(&wc);
|
||||
}
|
||||
|
||||
|
||||
@ -162,6 +162,15 @@ BEGIN
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_APPLICATION ICON "appicon.ico"
|
||||
#endif // Norwegian (Bokmal) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@ -250,6 +250,10 @@
|
||||
RelativePath=".\editor.rc"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\appicon.ico"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user