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

CtrlLibraryHistoryPanel.h

Go to the documentation of this file.
00001 //
00002 // CtrlLibraryHistoryPanel.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_CTRLLIBRARYHISTORYPANEL_H__FF136FD8_4F7F_4BE6_94B8_9B751169D10A__INCLUDED_)
00023 #define AFX_CTRLLIBRARYHISTORYPANEL_H__FF136FD8_4F7F_4BE6_94B8_9B751169D10A__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "CtrlLibraryPanel.h"
00028 
00029 
00030 class CLibraryHistoryPanel : public CLibraryPanel
00031 {
00032 // Construction
00033 public:
00034         CLibraryHistoryPanel();
00035         virtual ~CLibraryHistoryPanel();
00036 
00037 // Attributes
00038 protected:
00039         struct Item
00040         {
00041                 CLibraryRecent* m_pRecent;
00042                 DWORD                   m_nIndex;
00043                 SYSTEMTIME              m_pTime;
00044                 CString                 m_sText;
00045                 CString                 m_sTime;
00046                 int                             m_nIcon16;
00047                 CRect                   m_rect;
00048         };
00049 protected:
00050         CPtrArray       m_pList;
00051         Item*           m_pHover;
00052         int                     m_nColumns;
00053         int                     m_nScrollWheelLines;
00054 
00055 // Operations
00056 public:
00057         virtual BOOL CheckAvailable(CLibraryTreeItem* pFolders, CLibraryList* pObjects);
00058         virtual void Update();
00059 protected:
00060         void    OnClickFile(DWORD nFile);
00061 
00062 // Overrides
00063 public:
00064         //{{AFX_VIRTUAL(CLibraryHistoryPanel)
00065         //}}AFX_VIRTUAL
00066 
00067 // Implementation
00068 protected:
00069         //{{AFX_MSG(CLibraryHistoryPanel)
00070         afx_msg void OnSize(UINT nType, int cx, int cy);
00071         afx_msg void OnPaint();
00072         afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00073         afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00074         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00075         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00076         afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
00077         //}}AFX_MSG
00078 
00079         DECLARE_MESSAGE_MAP()
00080 
00081 };
00082 
00083 //{{AFX_INSERT_LOCATION}}
00084 
00085 #endif // !defined(AFX_CTRLLIBRARYHISTORYPANEL_H__FF136FD8_4F7F_4BE6_94B8_9B751169D10A__INCLUDED_)

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