00001 // 00002 // CtrlUploadTip.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 #if !defined(AFX_CTRLUPLOADTIP_H__09185D95_72F6_41F4_98B0_D3B42F01D967__INCLUDED_) 00023 #define AFX_CTRLUPLOADTIP_H__09185D95_72F6_41F4_98B0_D3B42F01D967__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "CtrlCoolTip.h" 00028 00029 class CUpload; 00030 class CUploadFile; 00031 class CLineGraph; 00032 class CGraphItem; 00033 00034 00035 class CUploadTipCtrl : public CCoolTipCtrl 00036 { 00037 // Construction 00038 public: 00039 CUploadTipCtrl(); 00040 virtual ~CUploadTipCtrl(); 00041 00042 DECLARE_DYNAMIC(CUploadTipCtrl) 00043 00044 // Attributes 00045 protected: 00046 CString m_sAddress; 00047 CLineGraph* m_pGraph; 00048 CGraphItem* m_pItem; 00049 protected: 00050 CStringArray m_pHeaderName; 00051 CStringArray m_pHeaderValue; 00052 int m_nHeaderWidth; 00053 00054 // Operations 00055 protected: 00056 virtual BOOL OnPrepare(); 00057 virtual void OnCalcSize(CDC* pDC); 00058 virtual void OnShow(); 00059 virtual void OnHide(); 00060 virtual void OnPaint(CDC* pDC); 00061 protected: 00062 void DrawProgressBar(CDC* pDC, CPoint* pPoint, CUploadFile* pFile); 00063 00064 // Overrides 00065 public: 00066 //{{AFX_VIRTUAL(CUploadTipCtrl) 00067 //}}AFX_VIRTUAL 00068 00069 // Implementation 00070 protected: 00071 //{{AFX_MSG(CUploadTipCtrl) 00072 afx_msg void OnTimer(UINT nIDEvent); 00073 //}}AFX_MSG 00074 00075 DECLARE_MESSAGE_MAP() 00076 }; 00077 00078 //{{AFX_INSERT_LOCATION}} 00079 00080 #endif // !defined(AFX_CTRLUPLOADTIP_H__09185D95_72F6_41F4_98B0_D3B42F01D967__INCLUDED_)