OLD | NEW |
| (Empty) |
1 // CUpdateDialog | |
2 | |
3 class CUpdateDialog : public CAxDialogImpl<CUpdateDialog> | |
4 { | |
5 | |
6 public: | |
7 | |
8 CUpdateDialog() | |
9 { | |
10 } | |
11 | |
12 ~CUpdateDialog() | |
13 { | |
14 } | |
15 | |
16 enum { IDD = IDD_UPDATEDIALOG }; | |
17 | |
18 BEGIN_MSG_MAP(CUpdateDialog) | |
19 MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) | |
20 COMMAND_HANDLER(IDOK, BN_CLICKED, OnClickedOK) | |
21 COMMAND_HANDLER(IDCANCEL, BN_CLICKED, OnClickedCancel) | |
22 CHAIN_MSG_MAP(CAxDialogImpl<CUpdateDialog>) | |
23 END_MSG_MAP() | |
24 | |
25 // Handler prototypes: | |
26 LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); | |
27 void SetVersions(CString new_version_, CString cur_version); | |
28 LRESULT OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) | |
29 { | |
30 EndDialog(wID); | |
31 return 0; | |
32 } | |
33 | |
34 LRESULT OnClickedCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandl
ed) | |
35 { | |
36 EndDialog(wID); | |
37 return 1; | |
38 } | |
39 | |
40 private: | |
41 | |
42 CString m_curVersion; | |
43 CString m_newVersion; | |
44 }; | |
OLD | NEW |