From 28ea9794921206d3ea5fd78410dc8720c8c98193 Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Sat, 8 Apr 2023 11:55:56 +0300 Subject: [PATCH] Hid the donation link. --- wCenterWindow.sln | 2 +- wCenterWindow/wCenterWindow.cpp | 5 +++++ wCenterWindow/wCenterWindow.rc | Bin 12982 -> 12954 bytes 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wCenterWindow.sln b/wCenterWindow.sln index 2e42ca0..f277e52 100644 --- a/wCenterWindow.sln +++ b/wCenterWindow.sln @@ -7,7 +7,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wCenterWindow", "wCenterWin EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C7B4FD1E-DC1B-46A4-842C-5130F09EFCB5}" ProjectSection(SolutionItems) = preProject - Version.h = Version.h + Version.ini = Version.ini EndProjectSection EndProject Global diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index aa34978..0b2209b 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -4,6 +4,7 @@ #include "framework.h" #include "wCenterWindow.h" +#define NO_DONATION #define KEY_I 0x49 #define KEY_C 0x43 #define KEY_V 0x56 @@ -520,6 +521,10 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) SetDlgItemTextW(hDlg, IDC_ABOUT_COPYRIGHT, szAboutCopyright); SetDlgItemTextW(hDlg, IDC_ABOUT_BUILDTIME, szAboutBuildTime); SetDlgItemTextW(hDlg, IDC_ABOUTHELP, szAboutHelp); +#ifdef NO_DONATION + HWND hLink = GetDlgItem(hDlg, IDC_DONATIONLINK); + if (hLink) DestroyWindow(hLink); +#endif // !NO_DONATION return (INT_PTR)TRUE; break; } diff --git a/wCenterWindow/wCenterWindow.rc b/wCenterWindow/wCenterWindow.rc index 246ebd325bea870a4a2012bb4776085615948d6d..e752b58cfb0ed11e73c3b6cdd52ea5d43a081639 100644 GIT binary patch delta 12 Ucmdm%IxBU<8nMkM#NJ5*04fXyCjbBd delta 36 scmbQ0x-E6X8ZluP22X}y21f=b1|J4j1{VeehMLKL`NTKx5_=#G0K@hQrvLx|