Index: src/ch/AboutDlg.cpp =================================================================== diff -u -r4c272b19c74694c428c943011f279ec064fbd894 -rd2b121c78f510b5384b8ef0ca80afbfd7f77fef7 --- src/ch/AboutDlg.cpp (.../AboutDlg.cpp) (revision 4c272b19c74694c428c943011f279ec064fbd894) +++ src/ch/AboutDlg.cpp (.../AboutDlg.cpp) (revision d2b121c78f510b5384b8ef0ca80afbfd7f77fef7) @@ -1,36 +1,35 @@ -/************************************************************************ - Copy Handler 1.x - program for copying data in Microsoft Windows - systems. - Copyright (C) 2001-2004 Ixen Gerthannes (copyhandler@o2.pl) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -*************************************************************************/ - +/*************************************************************************** +* Copyright (C) 2001-2008 by J�zef Starosczyk * +* ixen@copyhandler.com * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU Library General Public License * +* (version 2) as published by the Free Software Foundation; * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU Library General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., * +* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +***************************************************************************/ #include "stdafx.h" #include "ch.h" #include "resource.h" #include "AboutDlg.h" #include "StaticEx.h" +#include "../common/version.h" #ifdef _DEBUG #define new DEBUG_NEW #endif bool CAboutDlg::m_bLock=false; -CAboutDlg::CAboutDlg() : CHLanguageDialog(CAboutDlg::IDD, NULL, &m_bLock) +CAboutDlg::CAboutDlg() :ictranslate::CLanguageDialog(CAboutDlg::IDD, NULL, &m_bLock) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT @@ -41,7 +40,7 @@ { } -BEGIN_MESSAGE_MAP(CAboutDlg, CHLanguageDialog) +BEGIN_MESSAGE_MAP(CAboutDlg,ictranslate::CLanguageDialog) //{{AFX_MSG_MAP(CAboutDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() @@ -50,7 +49,8 @@ { CWnd* pCtl=(CWnd*)GetDlgItem(IDC_PROGRAM_STATICEX); CWnd* pCtl2=(CWnd*)GetDlgItem(IDC_FULLVERSION_STATICEX); - if (!pCtl || !pCtl2) + CWnd* pWndCopyright = GetDlgItem(IDC_COPYRIGHT_STATIC); + if (!pCtl || !pCtl2 || !pWndCopyright) return; else { @@ -59,19 +59,20 @@ pCtl->SetWindowText(GetApp()->GetAppNameVer()); pCtl2->SetWindowText(szFull); + pWndCopyright->SetWindowText(_T(COPYRIGHT_INFO)); } } BOOL CAboutDlg::OnInitDialog() { - CHLanguageDialog::OnInitDialog(); + CLanguageDialog::OnInitDialog(); UpdateProgramVersion(); return TRUE; } -void CAboutDlg::OnLanguageChanged(WORD /*wOld*/, WORD /*wNew*/) +void CAboutDlg::OnLanguageChanged() { UpdateProgramVersion(); }