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

CtrlMonitorBar.h

Go to the documentation of this file.
00001 //
00002 // CtrlMonitorBar.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #pragma once
00023 
00024 class CGraphItem;
00025 
00026 
00027 class CMonitorBarCtrl : public CControlBar
00028 {
00029 // Construction
00030 public:
00031         CMonitorBarCtrl();
00032         virtual ~CMonitorBarCtrl();
00033 
00034 // Operations
00035 public:
00036         BOOL    Create(CWnd* pParentWnd, DWORD dwStyle, UINT nID);
00037         void    OnSkinChange();
00038 
00039 // Attributes
00040 public:
00041         CControlBar*    m_pSnapBar[2];
00042         CGraphItem*             m_pTxItem;
00043         CGraphItem*             m_pRxItem;
00044         DWORD                   m_nMaximum;
00045         DWORD                   m_nCount;
00046 protected:
00047         CBitmap                 m_bmWatermark;
00048         CRect                   m_rcTrack;
00049         CRect                   m_rcTab;
00050         BOOL                    m_bTab;
00051         HICON                   m_hTab;
00052 
00053 // Overrides
00054 protected:
00055         virtual CSize   CalcFixedLayout(BOOL bStretch, BOOL bHorz);
00056         virtual void    OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHandler) {};
00057         virtual int             OnToolHitTest(CPoint point, TOOLINFO* pTI) const { return -1; }
00058         virtual void    DoPaint(CDC* pDC);
00059 protected:
00060         void                    PaintHistory(CDC* pDC, CRect* prc);
00061         void                    PaintCurrent(CDC* pDC, CRect* prc, CGraphItem* pItem);
00062         void                    PaintTab(CDC* pDC);
00063 
00064 // Message Map
00065 protected:
00066         DECLARE_MESSAGE_MAP()
00067         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00068         afx_msg void OnDestroy();
00069         afx_msg void OnSize(UINT nType, int cx, int cy);
00070         afx_msg void OnTimer(UINT nIDEvent);
00071         afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00072         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00073 };

Generated on Thu Dec 15 10:39:37 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2