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:
Erik Faye-Lund 2010-10-30 17:29:55 +02:00
parent 70bd0d006d
commit 8c842edff3
4 changed files with 17 additions and 4 deletions

BIN
editor/appicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

View File

@ -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);
}

View File

@ -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
/////////////////////////////////////////////////////////////////////////////

View File

@ -250,6 +250,10 @@
RelativePath=".\editor.rc"
>
</File>
<File
RelativePath=".\appicon.ico"
>
</File>
</Filter>
</Files>
<Globals>