Clone
ixen <ixen@copyhandler.com>
committed
on 12 Feb 08
Added unicode configuration, x64 platform support and made it build.
LoggerImprovements + 5 more
src/ch/AboutDlg.cpp (+1 -1)
38 38 }
39 39
40 40 CAboutDlg::~CAboutDlg()
41 41 {
42 42 }
43 43
44 44 BEGIN_MESSAGE_MAP(CAboutDlg, CHLanguageDialog)
45 45         //{{AFX_MSG_MAP(CAboutDlg)
46 46         //}}AFX_MSG_MAP
47 47 END_MESSAGE_MAP()
48 48
49 49 void CAboutDlg::UpdateProgramVersion()
50 50 {
51 51         CWnd* pCtl=(CWnd*)GetDlgItem(IDC_PROGRAM_STATICEX);
52 52         CWnd* pCtl2=(CWnd*)GetDlgItem(IDC_FULLVERSION_STATICEX);
53 53         if (!pCtl || !pCtl2)
54 54                 return;
55 55         else
56 56         {
57 57                 TCHAR szFull[256];
58                   _stprintf(szFull, GetResManager()->LoadString(IDS_ABOUTVERSION_STRING), GetApp()->GetAppVersion());
  58                 _sntprintf(szFull, 256, GetResManager()->LoadString(IDS_ABOUTVERSION_STRING), GetApp()->GetAppVersion());
59 59
60 60                 pCtl->SetWindowText(GetApp()->GetAppNameVer());
61 61                 pCtl2->SetWindowText(szFull);
62 62         }
63 63 }
64 64
65 65 BOOL CAboutDlg::OnInitDialog()
66 66 {
67 67         CHLanguageDialog::OnInitDialog();
68 68
69 69         UpdateProgramVersion();
70 70
71 71         return TRUE;
72 72 }
73 73
74 74 void CAboutDlg::OnLanguageChanged(WORD /*wOld*/, WORD /*wNew*/)
75 75 {
76 76         UpdateProgramVersion();
77 77 }
78 78