Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CMonitorBarCtrl Class Reference

#include <CtrlMonitorBar.h>

List of all members.

Public Member Functions

 CMonitorBarCtrl ()
virtual ~CMonitorBarCtrl ()
BOOL Create (CWnd *pParentWnd, DWORD dwStyle, UINT nID)
void OnSkinChange ()

Public Attributes

CControlBar * m_pSnapBar [2]
CGraphItemm_pTxItem
CGraphItemm_pRxItem
DWORD m_nMaximum
DWORD m_nCount

Protected Member Functions

virtual CSize CalcFixedLayout (BOOL bStretch, BOOL bHorz)
virtual void OnUpdateCmdUI (CFrameWnd *pTarget, BOOL bDisableIfNoHandler)
virtual int OnToolHitTest (CPoint point, TOOLINFO *pTI) const
virtual void DoPaint (CDC *pDC)
void PaintHistory (CDC *pDC, CRect *prc)
void PaintCurrent (CDC *pDC, CRect *prc, CGraphItem *pItem)
void PaintTab (CDC *pDC)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)

Protected Attributes

CBitmap m_bmWatermark
CRect m_rcTrack
CRect m_rcTab
BOOL m_bTab
HICON m_hTab


Constructor & Destructor Documentation

CMonitorBarCtrl::CMonitorBarCtrl  ) 
 

Definition at line 43 of file CtrlMonitorBar.cpp.

References GRC_TOTAL_BANDWIDTH_IN, GRC_TOTAL_BANDWIDTH_OUT, and NULL.

CMonitorBarCtrl::~CMonitorBarCtrl  )  [virtual]
 

Definition at line 54 of file CtrlMonitorBar.cpp.

References m_pRxItem, and m_pTxItem.


Member Function Documentation

CSize CMonitorBarCtrl::CalcFixedLayout BOOL  bStretch,
BOOL  bHorz
[protected, virtual]
 

Definition at line 100 of file CtrlMonitorBar.cpp.

References m_pSnapBar, and NULL.

BOOL CMonitorBarCtrl::Create CWnd *  pParentWnd,
DWORD  dwStyle,
UINT  nID
 

Definition at line 63 of file CtrlMonitorBar.cpp.

References NULL.

Referenced by CMainWnd::OnCreate().

void CMonitorBarCtrl::DoPaint CDC *  pDC  )  [protected, virtual]
 

Definition at line 155 of file CtrlMonitorBar.cpp.

References CoolInterface, CCoolInterface::DrawWatermark(), CCoolInterface::GetBuffer(), m_bmWatermark, CShareazaApp::m_bRTL, CCoolInterface::m_crDisabled, CCoolInterface::m_crMidtone, m_pRxItem, m_pTxItem, m_rcTrack, PaintCurrent(), PaintHistory(), PaintTab(), CGraphItem::SetHistory(), and theApp.

int CMonitorBarCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 70 of file CtrlMonitorBar.cpp.

References IDI_POINTER_ARROW, m_hTab, NULL, and OnSkinChange().

void CMonitorBarCtrl::OnDestroy  )  [protected]
 

Definition at line 91 of file CtrlMonitorBar.cpp.

void CMonitorBarCtrl::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 323 of file CtrlMonitorBar.cpp.

References CSettings::sLive::BandwidthScale, CSettings::Live, m_bTab, m_rcTab, m_rcTrack, NULL, and Settings.

BOOL CMonitorBarCtrl::OnSetCursor CWnd *  pWnd,
UINT  nHitTest,
UINT  message
[protected]
 

Definition at line 306 of file CtrlMonitorBar.cpp.

References IDC_HAND, and m_rcTrack.

void CMonitorBarCtrl::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 116 of file CtrlMonitorBar.cpp.

void CMonitorBarCtrl::OnSkinChange  ) 
 

Definition at line 146 of file CtrlMonitorBar.cpp.

References CSkin::GetWatermark(), m_bmWatermark, NULL, and Skin.

Referenced by OnCreate(), and CMainWnd::OnSkinChanged().

void CMonitorBarCtrl::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 125 of file CtrlMonitorBar.cpp.

References CSettings::Connection, CGraphItem::GetMaximum(), CSettings::sConnection::InSpeed, m_nCount, m_nMaximum, m_pRxItem, m_pTxItem, CSettings::sConnection::OutSpeed, Settings, and CGraphItem::Update().

virtual int CMonitorBarCtrl::OnToolHitTest CPoint  point,
TOOLINFO *  pTI
const [inline, protected, virtual]
 

Definition at line 57 of file CtrlMonitorBar.h.

virtual void CMonitorBarCtrl::OnUpdateCmdUI CFrameWnd *  pTarget,
BOOL  bDisableIfNoHandler
[inline, protected, virtual]
 

Definition at line 56 of file CtrlMonitorBar.h.

void CMonitorBarCtrl::PaintCurrent CDC *  pDC,
CRect *  prc,
CGraphItem pItem
[protected]
 

Definition at line 271 of file CtrlMonitorBar.cpp.

References CSettings::sLive::BandwidthScale, CGraphItem::GetValue(), CSettings::Live, CGraphItem::m_nCode, CGraphItem::m_nColour, CGraphItem::m_nLength, m_nMaximum, and Settings.

Referenced by DoPaint().

void CMonitorBarCtrl::PaintHistory CDC *  pDC,
CRect *  prc
[protected]
 

Definition at line 196 of file CtrlMonitorBar.cpp.

References CSettings::sLive::BandwidthScale, CSettings::Connection, CoolInterface, CGraphItem::GetValueAt(), CSettings::sConnection::InSpeed, CSettings::Live, m_bTab, CCoolInterface::m_fntNormal, CGraphItem::m_nLength, m_nMaximum, m_pRxItem, m_pTxItem, CSettings::sConnection::OutSpeed, Settings, and CSettings::SmartVolume().

Referenced by DoPaint().

void CMonitorBarCtrl::PaintTab CDC *  pDC  )  [protected]
 

Definition at line 286 of file CtrlMonitorBar.cpp.

References CSettings::sLive::BandwidthScale, CSettings::Live, m_hTab, m_rcTab, m_rcTrack, NULL, and Settings.

Referenced by DoPaint().


Member Data Documentation

CBitmap CMonitorBarCtrl::m_bmWatermark [protected]
 

Definition at line 47 of file CtrlMonitorBar.h.

Referenced by DoPaint(), and OnSkinChange().

BOOL CMonitorBarCtrl::m_bTab [protected]
 

Definition at line 50 of file CtrlMonitorBar.h.

Referenced by OnLButtonDown(), and PaintHistory().

HICON CMonitorBarCtrl::m_hTab [protected]
 

Definition at line 51 of file CtrlMonitorBar.h.

Referenced by OnCreate(), and PaintTab().

DWORD CMonitorBarCtrl::m_nCount
 

Definition at line 45 of file CtrlMonitorBar.h.

Referenced by OnTimer().

DWORD CMonitorBarCtrl::m_nMaximum
 

Definition at line 44 of file CtrlMonitorBar.h.

Referenced by CRemoteWnd::OnPaint(), OnTimer(), PaintCurrent(), and PaintHistory().

CGraphItem* CMonitorBarCtrl::m_pRxItem
 

Definition at line 43 of file CtrlMonitorBar.h.

Referenced by DoPaint(), CRemoteWnd::OnPaint(), OnTimer(), PaintHistory(), and ~CMonitorBarCtrl().

CControlBar* CMonitorBarCtrl::m_pSnapBar[2]
 

Definition at line 41 of file CtrlMonitorBar.h.

Referenced by CalcFixedLayout(), and CMainWnd::OnCreate().

CGraphItem* CMonitorBarCtrl::m_pTxItem
 

Definition at line 42 of file CtrlMonitorBar.h.

Referenced by DoPaint(), CRemoteWnd::OnPaint(), OnTimer(), PaintHistory(), and ~CMonitorBarCtrl().

CRect CMonitorBarCtrl::m_rcTab [protected]
 

Definition at line 49 of file CtrlMonitorBar.h.

Referenced by OnLButtonDown(), and PaintTab().

CRect CMonitorBarCtrl::m_rcTrack [protected]
 

Definition at line 48 of file CtrlMonitorBar.h.

Referenced by DoPaint(), OnLButtonDown(), OnSetCursor(), and PaintTab().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:10 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2