diff --git a/wCenterWindow/resource.h b/wCenterWindow/resource.h index 78aca4b..766cf53 100644 --- a/wCenterWindow/resource.h +++ b/wCenterWindow/resource.h @@ -47,6 +47,7 @@ #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 @@ -74,6 +75,6 @@ #define _APS_NEXT_RESOURCE_VALUE 130 #define _APS_NEXT_COMMAND_VALUE 32771 #define _APS_NEXT_CONTROL_VALUE 1015 -#define _APS_NEXT_SYMED_VALUE 125 +#define _APS_NEXT_SYMED_VALUE 126 #endif #endif diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 2f90a97..669fc6c 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -648,13 +648,15 @@ 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, szAboutHelp); + SetDlgItemTextW(hDlg, IDC_ABOUTEDIT, szAboutLicense); #ifdef NO_DONATION HWND hLink = GetDlgItem(hDlg, IDC_DONATIONLINK); if (hLink) DestroyWindow(hLink); diff --git a/wCenterWindow/wCenterWindow.rc b/wCenterWindow/wCenterWindow.rc index 8f7c640..5f61ded 100644 Binary files a/wCenterWindow/wCenterWindow.rc and b/wCenterWindow/wCenterWindow.rc differ