#include <Downloads_Progress.h>
Public Member Functions | |
| CDownloads_Progress () | |
| void | set_FullRedraw () |
| void | UpdateDownload () |
| void | SetActiveDownload (vmsDownloadSmartPtr dld) |
| vmsDownloadSmartPtr | GetActiveDownload () |
| BOOL | Create (CWnd *pParent) |
| virtual | ~CDownloads_Progress () |
Protected Member Functions | |
| void | DrawSectionProgress (CDC *dc, struct vmsSectionInfo *sect, int iSect, UINT64 uFileSize, bool bDontUseAlreadyDraw) |
| void | DrawProgress (CDC *dc, vmsDownloadSmartPtr dld) |
| afx_msg void | OnPaint () |
| afx_msg void | OnSize (UINT nType, int cx, int cy) |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadDrawProgress (LPVOID lp) |
Protected Attributes | |
| CBitmap | m_bmpProgress |
| int | m_iLastProgress |
| HANDLE | m_hthDrawProgress |
| HANDLE | m_hevShutdown |
| HANDLE | m_hevDraw |
| CPen | m_penQ |
| CBrush | m_brDone |
| CBrush | m_brProgress |
| CSize | m_size |
| vmsDownloadSmartPtr | m_pActiveDownload |
Definition at line 15 of file Downloads_Progress.h.
| CDownloads_Progress::CDownloads_Progress | ( | ) |
Definition at line 19 of file Downloads_Progress.cpp.
References _threadDrawProgress(), FALSE, m_hevDraw, m_hevShutdown, m_hthDrawProgress, m_iLastProgress, m_pActiveDownload, NULL, and TRUE.
| CDownloads_Progress::~CDownloads_Progress | ( | ) | [virtual] |
Definition at line 32 of file Downloads_Progress.cpp.
References m_hevDraw, m_hevShutdown, and m_hthDrawProgress.
| void CDownloads_Progress::set_FullRedraw | ( | ) |
Definition at line 187 of file Downloads_Progress.cpp.
References m_bmpProgress, and m_iLastProgress.
Referenced by CDownloads_Tasks::OnRClick(), OnSize(), and SetActiveDownload().
| void CDownloads_Progress::UpdateDownload | ( | ) |
Definition at line 182 of file Downloads_Progress.cpp.
References m_hevDraw.
Referenced by CDownloads_Info::UpdateActiveDownload().
| void CDownloads_Progress::SetActiveDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 119 of file Downloads_Progress.cpp.
References m_pActiveDownload, and set_FullRedraw().
Referenced by CDownloads_Info::Set_ActiveDownload().
| vmsDownloadSmartPtr CDownloads_Progress::GetActiveDownload | ( | ) |
Definition at line 177 of file Downloads_Progress.cpp.
References m_pActiveDownload.
Referenced by CDownloads_Info::Get_ActiveDownload().
| BOOL CDownloads_Progress::Create | ( | CWnd * | pParent | ) |
Definition at line 48 of file Downloads_Progress.cpp.
References FALSE, m_brDone, m_brProgress, m_penQ, NULL, and TRUE.
Referenced by CDownloads_Info::OnCreate().
| DWORD WINAPI CDownloads_Progress::_threadDrawProgress | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 193 of file Downloads_Progress.cpp.
References DrawProgress(), FALSE, m_hevDraw, m_hevShutdown, m_pActiveDownload, and NULL.
Referenced by CDownloads_Progress().
| void CDownloads_Progress::DrawSectionProgress | ( | CDC * | dc, | |
| struct vmsSectionInfo * | sect, | |||
| int | iSect, | |||
| UINT64 | uFileSize, | |||
| bool | bDontUseAlreadyDraw | |||
| ) | [protected] |
Definition at line 134 of file Downloads_Progress.cpp.
References m_brDone, m_brProgress, m_penQ, m_size, vmsSectionInfo::uDCurrent, vmsSectionInfo::uDEnd, and vmsSectionInfo::uDStart.
Referenced by DrawProgress().
| void CDownloads_Progress::DrawProgress | ( | CDC * | dc, | |
| vmsDownloadSmartPtr | dld | |||
| ) | [protected] |
Definition at line 71 of file Downloads_Progress.cpp.
References DrawSectionProgress(), FALSE, m_bmpProgress, m_iLastProgress, m_size, and NULL.
Referenced by _threadDrawProgress().
| void CDownloads_Progress::OnPaint | ( | ) | [protected] |
| void CDownloads_Progress::OnSize | ( | UINT | nType, | |
| int | cx, | |||
| int | cy | |||
| ) | [protected] |
Definition at line 126 of file Downloads_Progress.cpp.
References m_size, set_FullRedraw(), and TRUE.
CBitmap CDownloads_Progress::m_bmpProgress [protected] |
Definition at line 39 of file Downloads_Progress.h.
Referenced by DrawProgress(), and set_FullRedraw().
int CDownloads_Progress::m_iLastProgress [protected] |
Definition at line 40 of file Downloads_Progress.h.
Referenced by CDownloads_Progress(), DrawProgress(), OnPaint(), and set_FullRedraw().
HANDLE CDownloads_Progress::m_hthDrawProgress [protected] |
Definition at line 41 of file Downloads_Progress.h.
Referenced by CDownloads_Progress(), and ~CDownloads_Progress().
HANDLE CDownloads_Progress::m_hevShutdown [protected] |
Definition at line 41 of file Downloads_Progress.h.
Referenced by _threadDrawProgress(), CDownloads_Progress(), and ~CDownloads_Progress().
HANDLE CDownloads_Progress::m_hevDraw [protected] |
Definition at line 41 of file Downloads_Progress.h.
Referenced by _threadDrawProgress(), CDownloads_Progress(), OnPaint(), UpdateDownload(), and ~CDownloads_Progress().
CPen CDownloads_Progress::m_penQ [protected] |
Definition at line 43 of file Downloads_Progress.h.
Referenced by Create(), and DrawSectionProgress().
CBrush CDownloads_Progress::m_brDone [protected] |
Definition at line 45 of file Downloads_Progress.h.
Referenced by Create(), and DrawSectionProgress().
CBrush CDownloads_Progress::m_brProgress [protected] |
Definition at line 45 of file Downloads_Progress.h.
Referenced by Create(), and DrawSectionProgress().
CSize CDownloads_Progress::m_size [protected] |
Definition at line 48 of file Downloads_Progress.h.
Referenced by DrawProgress(), DrawSectionProgress(), and OnSize().
Definition at line 49 of file Downloads_Progress.h.
Referenced by _threadDrawProgress(), CDownloads_Progress(), GetActiveDownload(), and SetActiveDownload().
1.5.6