| OLD | NEW |
| (Empty) |
| 1 #include "PluginStdAfx.h" | |
| 2 | |
| 3 #include "PluginUpdateDialog.h" | |
| 4 #include "PluginDictionary.h" | |
| 5 #include "PluginClient.h" | |
| 6 | |
| 7 | |
| 8 void CUpdateDialog::SetVersions(CString newVersion, CString curVersion) | |
| 9 { | |
| 10 m_curVersion = curVersion; | |
| 11 m_newVersion = newVersion; | |
| 12 } | |
| 13 | |
| 14 | |
| 15 LRESULT CUpdateDialog::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOO
L& bHandled) | |
| 16 { | |
| 17 CAxDialogImpl<CUpdateDialog>::OnInitDialog(uMsg, wParam, lParam, bHandled); | |
| 18 | |
| 19 bHandled = TRUE; | |
| 20 | |
| 21 this->CenterWindow(); | |
| 22 | |
| 23 try | |
| 24 { | |
| 25 CPluginDictionary* dictionary = CPluginDictionary::GetInstance(); | |
| 26 | |
| 27 CString text; | |
| 28 | |
| 29 text = dictionary->Lookup("UPDATE_TITLE"); | |
| 30 SetWindowText(text); | |
| 31 | |
| 32 text = dictionary->Lookup("UPDATE_NEW_VERSION_EXISTS"); | |
| 33 SetDlgItemText(IDC_UPDATETEXT, text); | |
| 34 | |
| 35 text = dictionary->Lookup("UPDATE_DO_YOU_WISH_TO_DOWNLOAD"); | |
| 36 SetDlgItemText(IDC_DOYOU, text); | |
| 37 | |
| 38 text = dictionary->Lookup("GENERAL_YES"); | |
| 39 SetDlgItemText(IDOK, text); | |
| 40 | |
| 41 text = dictionary->Lookup("GENERAL_NO"); | |
| 42 SetDlgItemText(IDNO, text); | |
| 43 } | |
| 44 catch (std::runtime_error&) | |
| 45 { | |
| 46 } | |
| 47 | |
| 48 return 1; // Let the system set the focus | |
| 49 } | |
| OLD | NEW |