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

📄 explorerskin.h

📁 A Shell Extension Context Menu to Change Skin of Windows Explorer
💻 H
字号:

////////////////////////////////////////////////////////////////////////////
//	Copyright : A. Riazi 2003
//
//	Email:		a.riazi@misbah3com.com
//
//	This code may be used in compiled form in any way you desire. This
//	file may be redistributed unmodified by any means PROVIDING it is 
//	not sold for profit without the authors written consent, and 
//	providing that this notice and the authors name is included.
//
//	This file is provided 'as is' with no expressed or implied warranty.
//	The author accepts no liability if it causes any damage to your computer.
//
//	Do expect bugs.
//	Please let me know of any bugs/mods/improvements.
//	and I will try to fix/incorporate them into this file.
//	Enjoy!
//
//	Description: 
//					This is a shell extension to add background bitmap
//					to explorer. For more information on how to add a 
//					a shell extension, refer to these web pages:
//					http://www.codeproject.com/shell/shellextguide1.asp
//					http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/ifaces/icontextmenu/icontextmenu.asp				
//
//  History:		8 March 2003
////////////////////////////////////////////////////////////////////////////
// ExplorerSkin.h : Declaration of the CExplorerSkin


#ifndef __EXPLORERSKIN_H_
#define __EXPLORERSKIN_H_

#include "resource.h"       // main symbols
#include <shlobj.h>
#include <comdef.h>

/////////////////////////////////////////////////////////////////////////////
// CExplorerSkin
class ATL_NO_VTABLE CExplorerSkin : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CExplorerSkin, &CLSID_ExplorerSkin>,
	public IDispatchImpl<IExplorerSkin, &IID_IExplorerSkin, &LIBID_IESKINLib>,
	public IShellExtInit,
	public IContextMenu
{
public:
	CExplorerSkin()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_EXPLORERSKIN)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CExplorerSkin)
	COM_INTERFACE_ENTRY(IExplorerSkin)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(IShellExtInit)
	COM_INTERFACE_ENTRY(IContextMenu)
END_COM_MAP()

protected:
	TCHAR m_szFile[MAX_PATH];

// IExplorerSkin
public:
	// IShellExtInit
	STDMETHOD(Initialize) (LPCITEMIDLIST, LPDATAOBJECT, HKEY);	

	// IContextMenu
	STDMETHOD(GetCommandString) (UINT, UINT, UINT*, LPSTR, UINT);	
	STDMETHOD(InvokeCommand) (LPCMINVOKECOMMANDINFO);
	STDMETHOD(QueryContextMenu) (HMENU, UINT, UINT, UINT, UINT);	
};

#endif //__EXPLORERSKIN_H_

⌨️ 快捷键说明

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