| |
64 |
64 |
CString strText; |
| |
65 |
65 |
strText.Format(_T("%s: %ld.%ld.%ld.%ld"), GetResManager().LoadString(IDS_ABOUTVERSION_STRING), |
| |
66 |
66 |
PRODUCT_VERSION1, PRODUCT_VERSION2, PRODUCT_VERSION3, PRODUCT_VERSION4); |
| |
67 |
67 |
pCtl2->SetWindowText(strText); |
| |
68 |
68 |
|
| |
69 |
69 |
pWndCopyright->SetWindowText(_T(COPYRIGHT_INFO)); |
| |
70 |
70 |
|
| |
71 |
71 |
|
| |
72 |
72 |
pctlSite->SetWindowText(_T(PRODUCT_SITE) _T("|") _T(PRODUCT_SITE)); |
| |
73 |
73 |
pctlContact->SetWindowText(_T(CONTACT_INFO) _T("|") _T(CONTACT_INFO)); |
| |
74 |
74 |
|
| |
75 |
75 |
|
| |
76 |
76 |
ictranslate::CResourceManager& rResManager = GetResManager(); |
| |
77 |
77 |
const ictranslate::CLangData* pLangData = rResManager.GetLanguageData(); |
| |
78 |
78 |
if(pLangData) |
| |
79 |
79 |
{ |
| |
80 |
80 |
ictranslate::CFormat fmt(rResManager.LoadString(IDS_ABOUT_LANGUAGE_STRING)); |
| |
81 |
81 |
fmt.SetParam(_T("%langname"), pLangData->GetLangName()); |
| |
82 |
82 |
fmt.SetParam(_T("%authors"), pLangData->GetAuthor()); |
| |
83 |
83 |
|
| |
84 |
|
pctlLanguage->SetWindowText(fmt); |
| |
|
84 |
pctlLanguage->SetWindowText(fmt.ToString()); |
| |
85 |
85 |
} |
| |
86 |
86 |
} |
| |
87 |
87 |
|
| |
88 |
88 |
BOOL CAboutDlg::OnInitDialog() |
| |
89 |
89 |
{ |
| |
90 |
90 |
CLanguageDialog::OnInitDialog(); |
| |
91 |
91 |
|
| |
92 |
92 |
UpdateProgramVersion(); |
| |
93 |
93 |
|
| |
94 |
94 |
return TRUE; |
| |
95 |
95 |
} |
| |
96 |
96 |
|
| |
97 |
97 |
void CAboutDlg::OnLanguageChanged() |
| |
98 |
98 |
{ |
| |
99 |
99 |
UpdateProgramVersion(); |
| |
100 |
100 |
} |
| |
101 |
101 |
|
| |
102 |
102 |
BOOL CAboutDlg::OnTooltipText(UINT uiID, TOOLTIPTEXT* pTip) |
| |
103 |
103 |
{ |
| |
104 |
104 |
switch(uiID) |