1 // TortoiseIDiff - an image diff viewer in TortoiseSVN
3 // Copyright (C) 2012-2013 - 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"
28 CAboutDlg::CAboutDlg(HWND hParent
)
34 CAboutDlg::~CAboutDlg(void)
38 LRESULT
CAboutDlg::DlgFunc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
)
40 UNREFERENCED_PARAMETER(lParam
);
45 InitDialog(hwndDlg
, IDI_TORTOISEIDIFF
);
46 // initialize the controls
47 TCHAR verbuf
[1024] = {0};
48 TCHAR maskbuf
[1024] = {0};
49 ::LoadString (hResource
, IDS_VERSION
, maskbuf
, _countof(maskbuf
));
50 _stprintf_s(verbuf
, maskbuf
, TGIT_VERMAJOR
, TGIT_VERMINOR
, TGIT_VERMICRO
, TGIT_VERBUILD
);
51 SetDlgItemText(hwndDlg
, IDC_ABOUTVERSION
, verbuf
);
55 return DoCommand(LOWORD(wParam
));
61 LRESULT
CAboutDlg::DoCommand(int id
)