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_WNDBASEMATCH_H__BB7F6950_C699_40C4_8817_E3741CE3A8B2__INCLUDED_)
00023 #define AFX_WNDBASEMATCH_H__BB7F6950_C699_40C4_8817_E3741CE3A8B2__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "WndPanel.h"
00028 #include "CtrlMatch.h"
00029
00030 class CMatchList;
00031 class CCoolMenu;
00032
00033
00034 class CBaseMatchWnd : public CPanelWnd
00035 {
00036
00037 public:
00038 CBaseMatchWnd();
00039 virtual ~CBaseMatchWnd();
00040
00041 DECLARE_DYNCREATE(CBaseMatchWnd)
00042
00043
00044 public:
00045 CMatchCtrl m_wndList;
00046 CCoolBarCtrl m_wndToolBar;
00047 CEdit m_wndFilter;
00048 protected:
00049 CMatchList* m_pMatches;
00050 CCoolMenu* m_pCoolMenu;
00051 BOOL m_bContextMenu;
00052 DWORD m_tContextMenu;
00053 BOOL m_bPaused;
00054 BOOL m_bUpdate;
00055 BOOL m_bBMWActive;
00056 DWORD m_nCacheFiles;
00057
00058
00059 protected:
00060 int CheckExisting(BOOL bSHA1, SHA1* pSHA1, BOOL bTiger, TIGEROOT* pTiger, BOOL bED2K, MD4* pED2K);
00061
00062
00063 public:
00064
00065 public:
00066 virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
00067
00068
00069 virtual void UpdateMessages(BOOL bActive = TRUE);
00070 virtual HRESULT GetGenericView(IGenericView** ppView);
00071
00072
00073 protected:
00074
00075 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00076 afx_msg void OnDestroy();
00077 afx_msg void OnSize(UINT nType, int cx, int cy);
00078 afx_msg void OnTimer(UINT nIDEvent);
00079 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00080 afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
00081 afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
00082 afx_msg void OnUpdateSearchDownload(CCmdUI* pCmdUI);
00083 afx_msg void OnSearchDownload();
00084 afx_msg void OnUpdateSearchDownloadNow(CCmdUI* pCmdUI);
00085 afx_msg void OnSearchDownloadNow();
00086 afx_msg void OnUpdateSearchCopy(CCmdUI* pCmdUI);
00087 afx_msg void OnSearchCopy();
00088 afx_msg void OnUpdateSearchChat(CCmdUI* pCmdUI);
00089 afx_msg void OnSearchChat();
00090 afx_msg void OnUpdateSearchFilter(CCmdUI* pCmdUI);
00091 afx_msg void OnSearchFilter();
00092 afx_msg void OnUpdateSearchFilterRemove(CCmdUI* pCmdUI);
00093 afx_msg void OnSearchFilterRemove();
00094 afx_msg void OnSearchColumns();
00095 afx_msg void OnUpdateLibraryBitziWeb(CCmdUI* pCmdUI);
00096 afx_msg void OnLibraryBitziWeb();
00097 afx_msg void OnUpdateSecurityBan(CCmdUI* pCmdUI);
00098 afx_msg void OnSecurityBan();
00099 afx_msg void OnUpdateHitMonitorSearch(CCmdUI* pCmdUI);
00100 afx_msg void OnHitMonitorSearch();
00101 afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
00102 afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
00103 afx_msg void OnUpdateBrowseLaunch(CCmdUI* pCmdUI);
00104 afx_msg void OnBrowseLaunch();
00105 afx_msg void OnSearchFilterRaw();
00106 afx_msg void OnUpdateSearchForThis(CCmdUI* pCmdUI);
00107 afx_msg void OnSearchForThis();
00108 afx_msg void OnUpdateSearchForSimilar(CCmdUI* pCmdUI);
00109 afx_msg void OnSearchForSimilar();
00110 afx_msg void OnUpdateSearchForArtist(CCmdUI* pCmdUI);
00111 afx_msg void OnSearchForArtist();
00112 afx_msg void OnUpdateSearchForAlbum(CCmdUI* pCmdUI);
00113 afx_msg void OnSearchForAlbum();
00114 afx_msg void OnUpdateSearchForSeries(CCmdUI* pCmdUI);
00115 afx_msg void OnSearchForSeries();
00116
00117
00118
00119 afx_msg void OnKillFocusFilter();
00120 afx_msg void OnToolbarReturn();
00121 afx_msg void OnToolbarEscape();
00122 afx_msg void OnUpdateBlocker(CCmdUI* pCmdUI);
00123
00124 DECLARE_MESSAGE_MAP()
00125
00126 };
00127
00128
00129
00130 #define IDC_FILTER_BOX 107
00131
00132 #endif // !defined(AFX_WNDBASEMATCH_H__BB7F6950_C699_40C4_8817_E3741CE3A8B2__INCLUDED_)