diff --git a/Mainspring/resource.rc b/Mainspring/resource.rc index b07997c..1d4d60e 100644 --- a/Mainspring/resource.rc +++ b/Mainspring/resource.rc @@ -2,6 +2,7 @@ #include "windows.h" #include "winres.h" #include "src/resources.h" +#include "version.h" IDI_ICONMAIN ICON "res/mainspring.ico" @@ -39,4 +40,23 @@ BEGIN "S", ID_FILE_SAVE, CONTROL, VIRTKEY "S", ID_FILE_SAVEAS, CONTROL, SHIFT, VIRTKEY "O", ID_FILE_OPEN, CONTROL, VIRTKEY +END + +VS_VERSION_INFO VERSIONINFO +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Grayson Riffe" + VALUE "FileDescription", "Mainspring" + VALUE "ProductName", "Mainspring - A simple timekeeper" + VALUE "ProductVersion", APPVERSION + VALUE "LegalCopyright", "Copyright (C) 2025" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END END \ No newline at end of file diff --git a/Mainspring/src/Application.cpp b/Mainspring/src/Application.cpp index a335cc0..a57f46d 100644 --- a/Mainspring/src/Application.cpp +++ b/Mainspring/src/Application.cpp @@ -115,7 +115,10 @@ namespace mainspring { } case ID_HELP_ABOUT: - MessageBox(dlg, std::format("{} {}\nCopyright Grayson Riffe 2025\ngraysonriffe.com", app->m_appName, app->m_appVersion).c_str(), std::format("About {}", app->m_appName).c_str(), MB_OK); + MessageBox(dlg, std::format("{} {}\nCopyright Grayson Riffe 2025\ngraysonriffe.com\n\n" + "\tMainspring is a simple timekeeper. It can be used as a simple stopwatch for short-term activities, or " + "it can log hours on a longer-term project. Times can be saved to a file, and any subsequent uses will autosave to that file. The most recent " + "time will be loaded when Mainspring starts.", app->m_appName, app->m_appVersion).c_str(), std::format("About {}", app->m_appName).c_str(), MB_OK); return TRUE; }