CDownloads_Progress Class Reference

#include <Downloads_Progress.h>

List of all members.

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


Detailed Description

Definition at line 15 of file Downloads_Progress.h.


Constructor & Destructor Documentation

CDownloads_Progress::CDownloads_Progress (  ) 

CDownloads_Progress::~CDownloads_Progress (  )  [virtual]

Definition at line 32 of file Downloads_Progress.cpp.

References m_hevDraw, m_hevShutdown, and m_hthDrawProgress.


Member Function Documentation

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]

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]

Definition at line 63 of file Downloads_Progress.cpp.

References m_hevDraw, and m_iLastProgress.

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.


Member Data Documentation

Definition at line 39 of file Downloads_Progress.h.

Referenced by DrawProgress(), and set_FullRedraw().

Definition at line 40 of file Downloads_Progress.h.

Referenced by CDownloads_Progress(), DrawProgress(), OnPaint(), and set_FullRedraw().

Definition at line 41 of file Downloads_Progress.h.

Referenced by CDownloads_Progress(), and ~CDownloads_Progress().

HANDLE CDownloads_Progress::m_hevDraw [protected]

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().

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().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:44 2008 by  doxygen 1.5.6