00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_DLGDOWNLOADMONITOR_H__46BFBDED_8DCF_4E08_B224_8718FA19E7BF__INCLUDED_)
00023 #define AFX_DLGDOWNLOADMONITOR_H__46BFBDED_8DCF_4E08_B224_8718FA19E7BF__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "DlgSkinDialog.h"
00028
00029 class CDownload;
00030 class CLineGraph;
00031 class CGraphItem;
00032
00033
00034 class CDownloadMonitorDlg : public CSkinDialog
00035 {
00036
00037 public:
00038 CDownloadMonitorDlg(CDownload* pDownload);
00039 virtual ~CDownloadMonitorDlg();
00040
00041
00042 public:
00043 CDownload* m_pDownload;
00044 CString m_sName;
00045 CLineGraph* m_pGraph;
00046 CGraphItem* m_pItem;
00047 BOOL m_bTray;
00048 NOTIFYICONDATA m_pTray;
00049 BOOL m_bCompleted;
00050 public:
00051 static CPtrList m_pWindows;
00052
00053
00054 protected:
00055 BOOL CreateReal(UINT nID);
00056 void Update(CWnd* pWnd, LPCTSTR pszText);
00057 void Update(CWnd* pWnd, BOOL bEnabled);
00058 void DoPaint(CDC& dc);
00059 void DrawProgressBar(CDC* pDC, CRect* pRect);
00060 public:
00061 static void OnSkinChange(BOOL bSet);
00062 static void CloseAll();
00063
00064
00065 public:
00066
00067 enum { IDD = IDD_DOWNLOAD_MONITOR };
00068 CStatic m_wndVolume;
00069 CStatic m_wndVolumeLabel;
00070 CButton m_wndCancel;
00071 CButton m_wndClose;
00072 CButton m_wndStop;
00073 CStatic m_wndProgress;
00074 CStatic m_wndTime;
00075 CStatic m_wndTimeLabel;
00076 CStatic m_wndStatus;
00077 CStatic m_wndSpeed;
00078 CStatic m_wndSpeedLabel;
00079 CStatic m_wndSources;
00080 CStatic m_wndSourcesLabel;
00081 CButton m_wndLibrary;
00082 CButton m_wndLaunch;
00083 CStatic m_wndIcon;
00084 CStatic m_wndGraph;
00085 CStatic m_wndFile;
00086
00087
00088
00089 public:
00090
00091 protected:
00092 virtual void DoDataExchange(CDataExchange* pDX);
00093 virtual void PostNcDestroy();
00094
00095
00096
00097 protected:
00098
00099 virtual BOOL OnInitDialog();
00100 afx_msg void OnPaint();
00101 afx_msg void OnDownloadCancel();
00102 afx_msg void OnDestroy();
00103 afx_msg void OnTimer(UINT nIDEvent);
00104 afx_msg void OnDownloadLaunch();
00105 afx_msg void OnDownloadLibrary();
00106 afx_msg void OnDownloadStop();
00107 afx_msg void OnClose();
00108 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00109 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
00110 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00111 afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
00112 afx_msg LONG OnTray(UINT wParam, LONG lParam);
00113 afx_msg BOOL OnNeedText(UINT nID, NMHDR* pTTT, LRESULT* pResult);
00114 afx_msg void OnSize(UINT nType, int cx, int cy);
00115
00116
00117 DECLARE_MESSAGE_MAP()
00118 };
00119
00120
00121
00122 #endif // !defined(AFX_DLGDOWNLOADMONITOR_H__46BFBDED_8DCF_4E08_B224_8718FA19E7BF__INCLUDED_)