00001
00002
00003
00004
00005
00006 #if !defined(AFX_DOWNLOADS_PROGRESS_H__2F46F44F_3115_40E7_9305_BE4E4F04810D__INCLUDED_)
00007 #define AFX_DOWNLOADS_PROGRESS_H__2F46F44F_3115_40E7_9305_BE4E4F04810D__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif
00012
00013 #include "list.h"
00014
00015 class CDownloads_Progress : public CWnd
00016 {
00017
00018 public:
00019 CDownloads_Progress();
00020
00021 public:
00022
00023 public:
00024
00025
00026
00027
00028 public:
00029 void set_FullRedraw ();
00030
00031 void UpdateDownload ();
00032
00033 void SetActiveDownload (vmsDownloadSmartPtr dld);
00034 vmsDownloadSmartPtr GetActiveDownload();
00035 BOOL Create (CWnd *pParent);
00036 virtual ~CDownloads_Progress();
00037
00038 protected:
00039 CBitmap m_bmpProgress;
00040 int m_iLastProgress;
00041 HANDLE m_hthDrawProgress, m_hevShutdown, m_hevDraw;
00042 static DWORD WINAPI _threadDrawProgress (LPVOID lp);
00043 CPen m_penQ;
00044
00045 CBrush m_brDone, m_brProgress;
00046
00047 void DrawSectionProgress (CDC *dc, struct vmsSectionInfo* sect, int iSect, UINT64 uFileSize, bool bDontUseAlreadyDraw);
00048 CSize m_size;
00049 vmsDownloadSmartPtr m_pActiveDownload;
00050
00051 void DrawProgress (CDC* dc, vmsDownloadSmartPtr dld);
00052
00053 afx_msg void OnPaint();
00054 afx_msg void OnSize(UINT nType, int cx, int cy);
00055
00056 DECLARE_MESSAGE_MAP()
00057 };
00058
00059
00060
00061 #endif