diff --git a/src/dvsku_toolkit_gui/appicon.ico b/src/dvsku_toolkit_gui/appicon.ico new file mode 100644 index 0000000..eae4d1f Binary files /dev/null and b/src/dvsku_toolkit_gui/appicon.ico differ diff --git a/src/dvsku_toolkit_gui/dvsku_toolkit_gui.cpp b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.cpp index 55b1667..9fe8ec6 100644 --- a/src/dvsku_toolkit_gui/dvsku_toolkit_gui.cpp +++ b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.cpp @@ -37,6 +37,8 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, if (window == NULL) return 1; + SetClassLongPtr(glfwGetWin32Window(window), GCLP_HICON, (LONG_PTR)LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(101))); + glfwMakeContextCurrent(window); glfwSwapInterval(1); // Enable vsync diff --git a/src/dvsku_toolkit_gui/dvsku_toolkit_gui.rc b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.rc new file mode 100644 index 0000000..8ca1a95 --- /dev/null +++ b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.rc @@ -0,0 +1,71 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_ICON1 ICON "appicon.ico" + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj index 3a83129..2958285 100644 --- a/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj +++ b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj @@ -167,12 +167,19 @@ + + + + + + + diff --git a/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj.filters b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj.filters index 62bb80e..e0ece80 100644 --- a/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj.filters +++ b/src/dvsku_toolkit_gui/dvsku_toolkit_gui.vcxproj.filters @@ -92,5 +92,18 @@ Header Files + + Header Files + + + + + Resource Files + + + + + Resource Files + \ No newline at end of file diff --git a/src/dvsku_toolkit_gui/resource.h b/src/dvsku_toolkit_gui/resource.h new file mode 100644 index 0000000..034c5a7 --- /dev/null +++ b/src/dvsku_toolkit_gui/resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by dvsku_toolkit_gui.rc +// +#define IDI_ICON1 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif