⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ctrllibrarycollectionview.h

📁 p2p软件
💻 H
字号:
//
// CtrlLibraryCollectionView.h
//
// Copyright (c) Shareaza Development Team, 2002-2004.
// This file is part of SHAREAZA (www.shareaza.com)
//
// Shareaza is free software; you can redistribute it
// and/or modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
//
// Shareaza is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Shareaza; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//

#pragma once

#include "CtrlLibraryFileView.h"

class CCollectionFile;
class CLibraryFile;
class CWebCtrl;


class CLibraryCollectionView : public CLibraryFileView
{
// Construction
public:
	CLibraryCollectionView();
	virtual ~CLibraryCollectionView();
	
	DECLARE_DYNCREATE(CLibraryCollectionView)
	
// Attributes
protected:
	CWebCtrl*			m_pWebCtrl;
	DWORD				m_nWebIndex;
	CCollectionFile*	m_pCollection;
	SHA1				m_pSHA1;
	
// Operations
public:
	virtual BOOL	CheckAvailable(CLibraryTreeItem* pSel);
	virtual void	Update();
protected:
	virtual DWORD	HitTestIndex(const CPoint& point) const { return 0; };
	BOOL			ShowCollection(CLibraryFile* pFile);
	
// Implementation
protected:
	DECLARE_MESSAGE_MAP()
	afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnWebContextMenu(NMHDR* pNMHDR, LPARAM* pResult);
	afx_msg void OnUpdateLibraryFolderDownload(CCmdUI *pCmdUI);
	afx_msg void OnLibraryFolderDownload();
	
// Object Model
protected:
    class External : public CComObject
	{
	// Construction
	public:
		External();

	// Attributes
	public:
		CLibraryCollectionView* m_pView;
		BOOL m_bLockdown;
		void CheckLockdown();
		
	// Implementation
	protected:
		BEGIN_INTERFACE_PART(View, ICollectionHtmlView)
			DECLARE_DISPATCH()
			STDMETHOD(get_Application)(IApplication **ppApplication);
			STDMETHOD(Detect)(BSTR sURN, BSTR *psState);
			STDMETHOD(Hover)(BSTR sURN);
			STDMETHOD(Open)(BSTR sURN, VARIANT_BOOL *pbResult);
			STDMETHOD(Enqueue)(BSTR sURN, VARIANT_BOOL *pbResult);
			STDMETHOD(Download)(BSTR sURN, VARIANT_BOOL *pbResult);
			STDMETHOD(DownloadAll)();
			STDMETHOD(get_MissingCount)(LONG *pnCount);
		END_INTERFACE_PART(View)
		DECLARE_INTERFACE_MAP()
	} m_xExternal;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -