From 422284a81d87ee7cf5c116a2f2aae2d6713a74e1 Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Sun, 3 Mar 2024 12:35:10 +0300 Subject: [PATCH] Updated About window. --- LICENSE | 2 +- README.md | 4 ++-- Update_Version.ps1 | 22 ---------------------- pre-build.cmd | 21 --------------------- wCenterWindow/resource.h | 3 +-- wCenterWindow/wCenterWindow.cpp | 5 +---- wCenterWindow/wCenterWindow.h | 2 +- wCenterWindow/wCenterWindow.rc | Bin 16668 -> 13926 bytes 8 files changed, 6 insertions(+), 53 deletions(-) diff --git a/LICENSE b/LICENSE index bc77912..bc3e525 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 - 2024 Vladislav Salikov aka W0LF +Copyright (c) 2020-2024 Vladislav Salikov aka W0LF Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 03bf8c1..dd9d0ef 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## wCenterWindow -Copyright (c) 2020 - 2024 Vladislav Salikov aka W0LF.
-Program's icon made by Kirill Topov. +Copyright (c) 2020-2024 Vladislav Salikov aka W0LF.
+Program icon made by Kirill Topov. --- diff --git a/Update_Version.ps1 b/Update_Version.ps1 index 0be41ac..5433df8 100644 --- a/Update_Version.ps1 +++ b/Update_Version.ps1 @@ -1,25 +1,3 @@ -## MIT License -## -## Copyright (c) 2023 W0LF aka 'dreamforce' -## -## Permission is hereby granted, free of charge, to any person obtaining a copy -## of this software and associated documentation files (the "Software"), to deal -## in the Software without restriction, including without limitation the rights -## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -## copies of the Software, and to permit persons to whom the Software is -## furnished to do so, subject to the following conditions: -## -## The above copyright notice and this permission notice shall be included in all -## copies or substantial portions of the Software. -## -## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -## IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -## AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -## OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -## SOFTWARE. - # Update Version v2.1 # Required module: PSIni # Installation: Install-Module -Name PsIni diff --git a/pre-build.cmd b/pre-build.cmd index de6f5a6..b24fefa 100644 --- a/pre-build.cmd +++ b/pre-build.cmd @@ -1,25 +1,4 @@ @ECHO OFF -:: MIT License -:: -:: Copyright (c) 2023 W0LF aka 'dreamforce' -:: -:: Permission is hereby granted, free of charge, to any person obtaining a copy -:: of this software and associated documentation files (the "Software"), to deal -:: in the Software without restriction, including without limitation the rights -:: to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -:: copies of the Software, and to permit persons to whom the Software is -:: furnished to do so, subject to the following conditions: -:: -:: The above copyright notice and this permission notice shall be included in all -:: copies or substantial portions of the Software. -:: -:: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -:: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -:: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -:: AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -:: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -:: OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -:: SOFTWARE. :: In VisualStudio add to Pre-Build events: :: "$(SolutionDir)pre-build.cmd" "$(SolutionDir)" "$(ProjectDir)" diff --git a/wCenterWindow/resource.h b/wCenterWindow/resource.h index 2e47882..27bf03a 100644 --- a/wCenterWindow/resource.h +++ b/wCenterWindow/resource.h @@ -25,7 +25,6 @@ #define IDS_ERR_MAXMIN 122 #define IDS_RUNNING 123 #define IDT_TIMER 124 -#define IDS_LICENSE 125 #define IDR_MAINFRAME 128 #define IDD_MANUAL_EDITING 129 #define IDC_EDIT_X 1000 @@ -55,6 +54,6 @@ #define _APS_NEXT_RESOURCE_VALUE 130 #define _APS_NEXT_COMMAND_VALUE 32771 #define _APS_NEXT_CONTROL_VALUE 1016 -#define _APS_NEXT_SYMED_VALUE 126 +#define _APS_NEXT_SYMED_VALUE 125 #endif #endif diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 4825388..5949226 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -10,7 +10,7 @@ #include "wCenterWindow.h" #include "updater.h" -#define NO_DONATION +//#define NO_DONATION #define KEY_I 0x49 #define KEY_C 0x43 #define KEY_V 0x56 @@ -626,15 +626,12 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { WCHAR szAboutProgName[MAX_LOADSTRING]; WCHAR szAboutCopyright[MAX_LOADSTRING]; WCHAR szAboutBuildTime[MAX_LOADSTRING]; - WCHAR szAboutLicense[MAX_LOADSTRING * 22]; - LoadStringW(GetModuleHandleW(NULL), IDS_LICENSE, szAboutLicense, _countof(szAboutLicense)); MultiByteToWideChar(1251, 0, PRODUCT_NAME_FULL, _countof(PRODUCT_NAME_FULL), szAboutProgName, MAX_LOADSTRING); MultiByteToWideChar(1251, 0, PRODUCT_COPYRIGHT, _countof(PRODUCT_COPYRIGHT), szAboutCopyright, MAX_LOADSTRING); MultiByteToWideChar(1251, 0, ABOUT_BUILD, _countof(ABOUT_BUILD), szAboutBuildTime, MAX_LOADSTRING); SetDlgItemTextW(hDlg, IDC_ABOUT_PROGNAME, szAboutProgName); SetDlgItemTextW(hDlg, IDC_ABOUT_COPYRIGHT, szAboutCopyright); SetDlgItemTextW(hDlg, IDC_ABOUT_BUILDTIME, szAboutBuildTime); - SetDlgItemTextW(hDlg, IDC_ABOUTEDIT, szAboutLicense); #ifdef NO_DONATION HWND hLink = GetDlgItem(hDlg, IDC_DONATIONLINK); if (hLink) DestroyWindow(hLink); diff --git a/wCenterWindow/wCenterWindow.h b/wCenterWindow/wCenterWindow.h index 6ae6fa7..405713f 100644 --- a/wCenterWindow/wCenterWindow.h +++ b/wCenterWindow/wCenterWindow.h @@ -14,7 +14,7 @@ #define ARCH 86 #endif -#define MAX_LOADSTRING 50 +#define MAX_LOADSTRING 64 // Windows Header Files #include diff --git a/wCenterWindow/wCenterWindow.rc b/wCenterWindow/wCenterWindow.rc index 9fd257945552e4817b46d232405ac921751ed96d..cc2f0371d7f091f1e7f2e06a978afc1f01f75fff 100644 GIT binary patch delta 347 zcmbQ!#P}>{!zBS;BL*`DO9mYV1qO2llg$qW1eqr95x&D{IGIsWc=8&NYfzRBj}l|Z z_nPwTz6`z$PC)TwEqjOva~P0!RI3`oQ}<*@0J<%M zA)ldyA)6tUp%Tc;WGDubr9d*3AqB`PVaT66QM*w%fk7XrG7~743f2V@SJ&|s1&QYY zO(7)TtXSAiiH is51}9*4(^R*O-w}XY+HtxvY?YnLNcrZSykQGG+iro>^W1 delta 2844 zcmZ`*O>bLO5S@n=XxcO%GERts=%Xz-PMoBT+o-C9DkpZFi1V_>*`2&az>=4T?5aOJqxiOG}%|l7bJXWM7Wv=zjn7`hC z+f0YQ3&GMHhyUn|32(XG6Y2GCI0skdGGN#%BSpz0Z~>0;^2pr26dv;7vL+S4-Ipew zzWKOsY-H{PPC{-2P8`pBGG`*gdsoN-fJp-KaX8Wbad^<{QKfk~lJB*FA)9Xo#?0S+ z;~C;+*b=cLlajilQ;?{RZpkgx&1tAKa{UCHtO6R@S;3u?v^nmNcxz^;|AQ;^SA?&$ z6wT9{VYBhx^Y*K^{_GF=5;e)#wa@~_q47yir8ly0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