1 // TortoiseIDiff - an image diff viewer in TortoiseSVN
3 // Copyright (C) 2012 - TortoiseSVN
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include "..\version.h"
29 CAboutDlg::CAboutDlg(HWND hParent
)
35 CAboutDlg::~CAboutDlg(void)
39 LRESULT
CAboutDlg::DlgFunc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM
/*lParam*/)
45 InitDialog(hwndDlg
, IDI_TORTOISEIDIFF
);
46 // initialize the controls
47 TCHAR verbuf
[1024] = {0};
48 TCHAR maskbuf
[1024] = {0};
49 if (!::LoadString (hResource
, IDS_VERSION
, maskbuf
, _countof(maskbuf
)))
51 SecureZeroMemory(maskbuf
, sizeof(maskbuf
));
53 _stprintf_s(verbuf
, maskbuf
, TGIT_VERMAJOR
, TGIT_VERMINOR
, TGIT_VERMICRO
, TGIT_VERBUILD
);
54 SetDlgItemText(hwndDlg
, IDC_ABOUTVERSION
, verbuf
);
58 return DoCommand(LOWORD(wParam
));
64 LRESULT
CAboutDlg::DoCommand(int id
)