00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_SPIDERTASKS_H__0BDBE4EE_5A5A_4AC0_9FD6_A3CFA87DA53A__INCLUDED_) 00007 #define AFX_SPIDERTASKS_H__0BDBE4EE_5A5A_4AC0_9FD6_A3CFA87DA53A__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "ListCtrlEx.h" 00014 00015 #include "fsWebPageDownloader.h" 00016 #include "fsODMenu.h" 00017 00018 class CSpiderTasks : public CListCtrlEx 00019 { 00020 friend class CSpiderWnd; 00021 00022 public: 00023 CSpiderTasks(); 00024 00025 public: 00026 00027 public: 00028 00029 //{{AFX_VIRTUAL(CSpiderTasks) 00030 //}}AFX_VIRTUAL 00031 00032 public: 00033 00034 void CallSelectedPage(); 00035 00036 void UpdateIcons(); 00037 00038 void ApplyLanguage(); 00039 void ApplyLanguageToMenu (CMenu* pMenu); 00040 00041 void DeleteWebPage (fsWebPageDownloader *wp); 00042 00043 int GetWebPageImage (fsWebPageDownloader *wpd); 00044 00045 int FindWebPage (fsWebPageDownloader* wpd); 00046 00047 void UpdateWebPage (fsWebPageDownloader* wpd); 00048 void UpdateWebPage (int iItem); 00049 00050 void AddWebPage (fsWebPageDownloader *wpd); 00051 00052 int UpdateToolBar (UINT nID); 00053 void UpdateMenu (CMenu *pMenu); 00054 00055 BOOL Create (CWnd* pParent); 00056 virtual ~CSpiderTasks(); 00057 00058 protected: 00059 00060 void OnForceUpdate(); 00061 00062 void CalcCoordsForCurSel(); 00063 void OnKeyDown (WORD wVK); 00064 void OnDeleteAllItems(); 00065 void OnDeleteItem (NM_LISTVIEW *pNM); 00066 void OnClick(); 00067 00068 void UpdateActiveWPD (int adj = 0); 00069 00070 CImageList m_images; 00071 CImageList m_selimages; 00072 00073 fsODMenu m_odmenu; 00074 POINT m_rbPt; 00075 void OnRClick(); 00076 00077 //{{AFX_MSG(CSpiderTasks) 00078 afx_msg void OnSpiderDl(); 00079 afx_msg void OnRButtonDown(UINT nFlags, CPoint point); 00080 afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct); 00081 afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct); 00082 afx_msg void OnSpiderStopdl(); 00083 afx_msg void OnSpiderStartdl(); 00084 afx_msg void OnSpiderStartautomatically(); 00085 afx_msg void OnSpiderSettings(); 00086 afx_msg void OnSpiderSchedule(); 00087 afx_msg void OnSpiderOpenfolder(); 00088 afx_msg void OnSpiderDelete(); 00089 afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); 00090 afx_msg void OnSpiderOpenpage(); 00091 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 00092 //}}AFX_MSG 00093 00094 DECLARE_MESSAGE_MAP() 00095 private: 00096 00097 BOOL m_bAutoStart; 00098 }; 00099 00100 //{{AFX_INSERT_LOCATION}//}} 00101 00102 #endif
1.5.6