00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #if !defined(AFX_PLUGTOOLBAR_H__7F4831DD_9204_4457_A718_5BBC46CA373E__INCLUDED_) 00006 #define AFX_PLUGTOOLBAR_H__7F4831DD_9204_4457_A718_5BBC46CA373E__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif 00011 00012 #include "DownloadsWnd.h" 00013 #include "fsPluginMgr.h" 00014 00015 class CPlugToolBar : public CListBox 00016 { 00017 00018 public: 00019 CPlugToolBar(); 00020 00021 public: 00022 00023 public: 00024 00025 00026 //{{AFX_VIRTUAL(CPlugToolBar) 00027 //}}AFX_VIRTUAL 00028 00029 public: 00030 00031 void OnNewLng(); 00032 int GetActivePlugin(); 00033 void SetActivePlugin (int iPlugin); 00034 void SendPluginCommand (UINT uCmd); 00035 class CPlugFrame* m_pPlugFrame; 00036 BOOL Create (CWnd *pParent); 00037 virtual ~CPlugToolBar(); 00038 00039 00040 protected: 00041 int m_iActivePlugin; 00042 class CMainFrame* m_pMainFrame; 00043 void OnClickItem (int iItem); 00044 void DrawPressed (CDC *pDC, CPoint pt); 00045 void InvalidateItem (int item, BOOL bErase = FALSE); 00046 void DrawMayBeSelected (CDC *pDC, CPoint ptImage); 00047 int m_iMayBeSelected, m_iPressed; 00048 void Erase (CDC *pDC, RECT &rc); 00049 CFont m_font; 00050 COLORREF m_clrBk, m_clrText; 00051 BOOL Initialize(); 00052 //{{AFX_MSG(CPlugToolBar) 00053 afx_msg void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct); 00054 afx_msg void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); 00055 afx_msg void OnMouseMove(UINT nFlags, CPoint point); 00056 afx_msg BOOL OnEraseBkgnd(CDC* pDC); 00057 afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 00058 afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 00059 afx_msg void OnCaptureChanged(CWnd *pWnd); 00060 //}}AFX_MSG 00061 00062 DECLARE_MESSAGE_MAP() 00063 }; 00064 00065 //{{AFX_INSERT_LOCATION}//}} 00066 00067 #endif
1.5.6