00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
00033 public:
00034 CLibraryHistoryPanel();
00035 virtual ~CLibraryHistoryPanel();
00036
00037
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
00056 public:
00057 virtual BOOL CheckAvailable(CLibraryTreeItem* pFolders, CLibraryList* pObjects);
00058 virtual void Update();
00059 protected:
00060 void OnClickFile(DWORD nFile);
00061
00062
00063 public:
00064
00065
00066
00067
00068 protected:
00069
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
00078
00079 DECLARE_MESSAGE_MAP()
00080
00081 };
00082
00083
00084
00085 #endif // !defined(AFX_CTRLLIBRARYHISTORYPANEL_H__FF136FD8_4F7F_4BE6_94B8_9B751169D10A__INCLUDED_)