installpacdlg.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:2k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #pragma once
  2. #define WM_USER_INSTALL_MESSAGE (WM_USER+1001)
  3. #define WM_USER_INSTALL_PROGRESS (WM_USER+1002)
  4. #define WM_USER_INSTALL_END (WM_USER+1003)
  5. typedef struct install_info_t
  6. {
  7. HWND hMainWnd;
  8. CNetDatabase * pNetDB;
  9. int nType;
  10. CStringArray * pStringArray;
  11. } INSTALL_INFO, * LPINSTALL_INFO;
  12. /***
  13. 安装下载数据包对话框
  14. */
  15. class CInstallPacDlg : public CPropertyPageEx
  16. {
  17. DECLARE_DYNCREATE(CInstallPacDlg)
  18. // Construction
  19. public:
  20. CInstallPacDlg( );   // standard constructor
  21. virtual ~CInstallPacDlg( );
  22. static HANDLE m_hEventKillInstallThread;
  23. static HANDLE m_hEventInstallThreadKilled;
  24. void OnCompleted( );
  25. // Dialog Data
  26. //{{AFX_DATA(CInstallPacDlg)
  27. enum { IDD = IDD_INSTALLPACKAGE };
  28. CStatic m_staticProgress;
  29. CButton m_btnStart;
  30. CButton m_btnStop;
  31. CButton m_btnRemove;
  32. CButton m_btnExplorer;
  33. CListCtrl m_listFiles;
  34. CProgressCtrl m_ctrlProgress;
  35. CStatic m_staticStatus;
  36. //}}AFX_DATA
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CInstallPacDlg)
  40. public:
  41. virtual BOOL OnInitDialog();
  42. virtual BOOL OnSetActive();
  43. virtual void OnOK();
  44. virtual void OnCancel();
  45. virtual BOOL OnKillActive();
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. CImageList m_imageList;
  52. CStringArray m_astrPacFiles;
  53. CStringArray m_astrErrorPac;
  54. INSTALL_INFO * m_pInstallInfo;
  55. CNetDatabase m_netdb;
  56. CSPTime m_tmLatestOld;
  57. BOOL m_bCodetableInstalled;
  58. BOOL m_bDBModified;
  59. // Generated message map functions
  60. //{{AFX_MSG(CInstallPacDlg)
  61. afx_msg void OnExplorer();
  62. afx_msg void OnRemove();
  63. afx_msg void OnDblclkListFiles(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnStop();
  65. afx_msg void OnStart();
  66. //}}AFX_MSG
  67. afx_msg LRESULT OnInstallMessage( WPARAM wParam, LPARAM lParam );
  68. afx_msg LRESULT OnInstallProgress( WPARAM wParam, LPARAM lParam );
  69. afx_msg LRESULT OnInstallEnd( WPARAM wParam, LPARAM lParam );
  70. DECLARE_MESSAGE_MAP()
  71. };