5 #include "..\version.h"
11 CAboutDlg::CAboutDlg(HWND hParent
)
16 CAboutDlg::~CAboutDlg(void)
20 LRESULT
CAboutDlg::DlgFunc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
)
22 UNREFERENCED_PARAMETER(lParam
);
27 InitDialog(hwndDlg
, IDI_TORTOISEIDIFF
);
28 // initialize the controls
29 TCHAR verbuf
[1024] = {0};
30 TCHAR maskbuf
[1024] = {0};
31 if (!::LoadString (hResource
, IDS_VERSION
, maskbuf
, _countof(maskbuf
)))
33 SecureZeroMemory(maskbuf
, sizeof(maskbuf
));
35 _stprintf_s(verbuf
, maskbuf
, TGIT_VERMAJOR
, TGIT_VERMINOR
, TGIT_VERMICRO
, TGIT_VERBUILD
);
36 SetDlgItemText(hwndDlg
, IDC_ABOUTVERSION
, verbuf
);
40 return DoCommand(LOWORD(wParam
));
46 LRESULT
CAboutDlg::DoCommand(int id
)