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

📄 hookhelper.h

📁 在vc环境下
💻 H
字号:
// HookHelper.h: interface for the CHookHelper class.
//
//////////////////////////////////////////////////////////////////////
#pragma once

// 
// Class to manage a Commands hook object, this hides the actual control or
// application that is behind the hook
//
class CHookHelper  
{
public:
	CHookHelper();
	virtual ~CHookHelper();
public:
    HRESULT putref_Hook(IDispatch *hook);
	HRESULT get_Hook(IDispatch **hook);
	//IDispatchPtr get_Hook();

	HRESULT get_ActiveView(IActiveView **ppActiveView);
	//IActiveViewPtr get_ActiveView();

	HRESULT get_FocusMap(IMap **ppMap);
	//IMapPtr get_FocusMap();

    HRESULT get_hWnd(HWND* phWnd);

private:
  IDispatchPtr									m_cpHook;
  IApplicationPtr						m_cpApp;				//ArcMap Application
  IPageLayoutControlPtr  m_cpPageLayoutControl; //PageLayoutControl
  IMapControl2Ptr				m_cpMapControl;        //Map Control
};

⌨️ 快捷键说明

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