Update About dialog.
This commit is contained in:
@@ -37,6 +37,9 @@
|
|||||||
#define IDC_BUTTON_CLOSE 1007
|
#define IDC_BUTTON_CLOSE 1007
|
||||||
#define IDC_ABOUTHELP 1008
|
#define IDC_ABOUTHELP 1008
|
||||||
#define IDC_DONATIONLINK 1009
|
#define IDC_DONATIONLINK 1009
|
||||||
|
#define IDC_ABOUT_PROGNAME 1010
|
||||||
|
#define IDC_ABOUT_COPYRIGHT 1011
|
||||||
|
#define IDC_ABOUT_BUILDTIME 1012
|
||||||
#define PRODUCT_YEAR_START 2020
|
#define PRODUCT_YEAR_START 2020
|
||||||
#define V_SECS 52245
|
#define V_SECS 52245
|
||||||
#define IDC_STATIC -1
|
#define IDC_STATIC -1
|
||||||
@@ -48,7 +51,7 @@
|
|||||||
#define _APS_NO_MFC 1
|
#define _APS_NO_MFC 1
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 130
|
#define _APS_NEXT_RESOURCE_VALUE 130
|
||||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1010
|
#define _APS_NEXT_CONTROL_VALUE 1013
|
||||||
#define _APS_NEXT_SYMED_VALUE 122
|
#define _APS_NEXT_SYMED_VALUE 122
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
HINSTANCE hInst; // Instance
|
HINSTANCE hInst; // Instance
|
||||||
WCHAR szTitle[MAX_LOADSTRING]; // Window's title
|
WCHAR szTitle[MAX_LOADSTRING]; // Window's title
|
||||||
WCHAR szClass[MAX_LOADSTRING]; // Window's class
|
WCHAR szClass[MAX_LOADSTRING]; // Window's class
|
||||||
WCHAR szAbout[MAX_LOADSTRING * 12]; // Description text
|
WCHAR szAboutHelp[MAX_LOADSTRING * 12]; // Description text
|
||||||
WCHAR szWinTitle[256];
|
WCHAR szWinTitle[256];
|
||||||
WCHAR szWinClass[256];
|
WCHAR szWinClass[256];
|
||||||
WCHAR szWinCore[] = L"Windows.UI.Core.CoreWindow";
|
WCHAR szWinCore[] = L"Windows.UI.Core.CoreWindow";
|
||||||
@@ -252,7 +252,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
diag_log("Keyboard hook was successfully set");
|
diag_log("Keyboard hook was successfully set");
|
||||||
|
|
||||||
LoadStringW(hInst, IDS_ABOUT, szAbout, _countof(szAbout));
|
LoadStringW(hInst, IDS_ABOUT, szAboutHelp, _countof(szAboutHelp));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -510,7 +510,16 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
{
|
{
|
||||||
diag_log("Initializing 'About' dialog");
|
diag_log("Initializing 'About' dialog");
|
||||||
SetDlgItemTextW(hDlg, IDC_ABOUTHELP, szAbout);
|
WCHAR szAboutProgName[MAX_LOADSTRING];
|
||||||
|
WCHAR szAboutCopyright[MAX_LOADSTRING];
|
||||||
|
WCHAR szAboutBuildTime[MAX_LOADSTRING];
|
||||||
|
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, BUILD_DATETIME, _countof(BUILD_DATETIME), szAboutBuildTime, MAX_LOADSTRING);
|
||||||
|
SetDlgItemTextW(hDlg, IDC_ABOUT_PROGNAME, szAboutProgName);
|
||||||
|
SetDlgItemTextW(hDlg, IDC_ABOUT_COPYRIGHT, szAboutCopyright);
|
||||||
|
SetDlgItemTextW(hDlg, IDC_ABOUT_BUILDTIME, szAboutBuildTime);
|
||||||
|
SetDlgItemTextW(hDlg, IDC_ABOUTHELP, szAboutHelp);
|
||||||
return (INT_PTR)TRUE;
|
return (INT_PTR)TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user