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)
|
static ATOM registerMainWindowClass(HINSTANCE hInstance)
|
||||||
{
|
{
|
||||||
WNDCLASSEXW wc;
|
WNDCLASSEXW wc;
|
||||||
|
|
||||||
wc.cbSize = sizeof(wc);
|
wc.cbSize = sizeof(wc);
|
||||||
wc.style = 0;
|
wc.style = 0;
|
||||||
wc.lpfnWndProc = mainWindowProc;
|
wc.lpfnWndProc = mainWindowProc;
|
||||||
wc.cbClsExtra = 0;
|
wc.cbClsExtra = 0;
|
||||||
wc.cbWndExtra = 0;
|
wc.cbWndExtra = 0;
|
||||||
wc.hInstance = hInstance;
|
wc.hInstance = hInstance;
|
||||||
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
|
wc.hIcon = LoadIcon(hInstance, IDI_APPLICATION);
|
||||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||||
wc.hbrBackground = (HBRUSH)0;
|
wc.hbrBackground = (HBRUSH)0;
|
||||||
wc.lpszMenuName = MAKEINTRESOURCEW(IDR_MENU);
|
wc.lpszMenuName = MAKEINTRESOURCEW(IDR_MENU);
|
||||||
wc.lpszClassName = mainWindowClassName;
|
wc.lpszClassName = mainWindowClassName;
|
||||||
wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
|
wc.hIconSm = wc.hIcon;
|
||||||
|
|
||||||
return RegisterClassExW(&wc);
|
return RegisterClassExW(&wc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -162,6 +162,15 @@ BEGIN
|
|||||||
END
|
END
|
||||||
#endif // APSTUDIO_INVOKED
|
#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
|
#endif // Norwegian (Bokmal) resources
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|||||||
@ -250,6 +250,10 @@
|
|||||||
RelativePath=".\editor.rc"
|
RelativePath=".\editor.rc"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\appicon.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user