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

📄 mapcontrol.tlh

📁 叮叮咚咚 叮叮咚咚 叮叮咚咚
💻 TLH
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (fb421cbc).
//
// MapControl.tlh
//
// C++ source equivalent of Win32 type library c:/Program Files/ArcGis/bin/MapControl.ocx
// compiler-generated file created 08/02/06 at 09:01:56 - DO NOT EDIT!

//
// Cross-referenced type libraries:
//
//  #import "C:\Program Files\ArcGIS\com\esriSystemUI.olb"
//  #import "C:\Program Files\ArcGIS\com\esriCarto.olb"
//  #import "C:\Program Files\ArcGIS\com\esriGeometry.olb"
//  #import "C:\Program Files\ArcGIS\com\esriSystem.olb"
//

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

//
// Forward references and typedefs
//

struct __declspec(uuid("423dbca0-b7e6-11d5-a9de-00104bb6fc1c"))
/* dual interface */ IMapControl2;
struct __declspec(uuid("62c52249-8a87-4f7b-83f1-829064f5438e"))
/* dual interface */ IMapControl3;
struct __declspec(uuid("c864e7b1-c5ba-42bb-9c2f-d311f218c55b"))
/* dispinterface */ IMapControlDefault;
struct __declspec(uuid("423dbca1-b7e6-11d5-a9de-00104bb6fc1c"))
/* dispinterface */ IMapControlEvents2;
struct /* coclass */ MapControl;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(IMapControl2, __uuidof(IMapControl2));
_COM_SMARTPTR_TYPEDEF(IMapControl3, __uuidof(IMapControl3));
_COM_SMARTPTR_TYPEDEF(IMapControlDefault, __uuidof(IDispatch));
_COM_SMARTPTR_TYPEDEF(IMapControlEvents2, __uuidof(IDispatch));

//
// Type library items
//

struct __declspec(uuid("423dbca0-b7e6-11d5-a9de-00104bb6fc1c"))
IMapControl2 : IDispatch
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_hWnd (
        long * hWnd ) = 0;
    virtual HRESULT __stdcall put_BackColor (
        OLE_COLOR BackColor ) = 0;
    virtual HRESULT __stdcall get_BackColor (
        OLE_COLOR * BackColor ) = 0;
    virtual HRESULT __stdcall put_MousePointer (
        enum esriControlsMousePointer MousePointer ) = 0;
    virtual HRESULT __stdcall get_MousePointer (
        enum esriControlsMousePointer * MousePointer ) = 0;
    virtual HRESULT __stdcall putref_MouseIcon (
        IPictureDisp * MouseIcon ) = 0;
    virtual HRESULT __stdcall get_MouseIcon (
        IPictureDisp * * MouseIcon ) = 0;
    virtual HRESULT __stdcall put_BorderStyle (
        enum esriControlsBorderStyle BorderStyle ) = 0;
    virtual HRESULT __stdcall get_BorderStyle (
        enum esriControlsBorderStyle * BorderStyle ) = 0;
    virtual HRESULT __stdcall put_Enabled (
        VARIANT_BOOL Enabled ) = 0;
    virtual HRESULT __stdcall get_Enabled (
        VARIANT_BOOL * Enabled ) = 0;
    virtual HRESULT __stdcall put_Appearance (
        enum esriControlsAppearance Appearance ) = 0;
    virtual HRESULT __stdcall get_Appearance (
        enum esriControlsAppearance * Appearance ) = 0;
    virtual HRESULT __stdcall AboutBox ( ) = 0;
    virtual HRESULT __stdcall putref_Map (
        struct IMap * Map ) = 0;
    virtual HRESULT __stdcall get_Map (
        struct IMap * * Map ) = 0;
    virtual HRESULT __stdcall get_ActiveView (
        struct IActiveView * * ActiveView ) = 0;
    virtual HRESULT __stdcall get_LayerCount (
        long * numLayers ) = 0;
    virtual HRESULT __stdcall get_Layer (
        long index,
        struct ILayer * * pLayer ) = 0;
    virtual HRESULT __stdcall get_Extent (
        struct IEnvelope * * Extent ) = 0;
    virtual HRESULT __stdcall put_Extent (
        struct IEnvelope * Extent ) = 0;
    virtual HRESULT __stdcall get_FullExtent (
        struct IEnvelope * * FullExtent ) = 0;
    virtual HRESULT __stdcall put_FullExtent (
        struct IEnvelope * FullExtent ) = 0;
    virtual HRESULT __stdcall get_ShowScrollbars (
        VARIANT_BOOL * ShowScrollbars ) = 0;
    virtual HRESULT __stdcall put_ShowScrollbars (
        VARIANT_BOOL ShowScrollbars ) = 0;
    virtual HRESULT __stdcall put_VisibleRegion (
        struct IGeometry * _arg1 ) = 0;
    virtual HRESULT __stdcall get_SpatialReference (
        struct ISpatialReference * * spRef ) = 0;
    virtual HRESULT __stdcall putref_SpatialReference (
        struct ISpatialReference * spRef ) = 0;
    virtual HRESULT __stdcall get_ReferenceScale (
        double * ReferenceScale ) = 0;
    virtual HRESULT __stdcall put_ReferenceScale (
        double ReferenceScale ) = 0;
    virtual HRESULT __stdcall get_MapScale (
        double * MapScale ) = 0;
    virtual HRESULT __stdcall put_MapScale (
        double MapScale ) = 0;
    virtual HRESULT __stdcall get_CurrentTool (
        struct ITool * * pTool ) = 0;
    virtual HRESULT __stdcall putref_CurrentTool (
        struct ITool * pTool ) = 0;
    virtual HRESULT __stdcall AddLayer (
        struct ILayer * Layer,
        long toIndex ) = 0;
    virtual HRESULT __stdcall AddLayerFromFile (
        BSTR lyrPath,
        long toIndex ) = 0;
    virtual HRESULT __stdcall ClearLayers ( ) = 0;
    virtual HRESULT __stdcall DeleteLayer (
        long index ) = 0;
    virtual HRESULT __stdcall MoveLayerTo (
        long fromIndex,
        long toIndex ) = 0;
    virtual HRESULT __stdcall LoadMxFile (
        BSTR mxPath,
        VARIANT mapNameOrIndex = vtMissing,
        VARIANT password = vtMissing ) = 0;
    virtual HRESULT __stdcall Refresh (
        enum esriViewDrawPhase phase,
        VARIANT layerOrElement = vtMissing,
        VARIANT envelope = vtMissing ) = 0;
    virtual HRESULT __stdcall Pan ( ) = 0;
    virtual HRESULT __stdcall CenterAt (
        struct IPoint * centerPoint ) = 0;
    virtual HRESULT __stdcall TrackRectangle (
        struct IEnvelope * * rectangle ) = 0;
    virtual HRESULT __stdcall TrackPolygon (
        struct IGeometry * * polygon ) = 0;
    virtual HRESULT __stdcall TrackLine (
        struct IGeometry * * polyline ) = 0;
    virtual HRESULT __stdcall TrackCircle (
        struct IGeometry * * circle ) = 0;
    virtual HRESULT __stdcall DrawShape (
        struct IGeometry * shape,
        VARIANT * symbol = &vtMissing ) = 0;
    virtual HRESULT __stdcall FlashShape (
        struct IGeometry * pShape,
        long nFlashes,
        long flashInterval,
        VARIANT symbol = vtMissing ) = 0;
    virtual HRESULT __stdcall FromMapPoint (
        struct IPoint * pt,
        long * x,
        long * y ) = 0;
    virtual HRESULT __stdcall ToMapPoint (
        long x,
        long y,
        struct IPoint * * point ) = 0;
    virtual HRESULT __stdcall AddShapeFile (
        BSTR path,
        BSTR fileName ) = 0;
    virtual HRESULT __stdcall DrawText (
        struct IGeometry * pGeometry,
        BSTR text,
        VARIANT * pSymbol = &vtMissing ) = 0;
    virtual HRESULT __stdcall CheckMxFile (
        BSTR fileName,
        VARIANT_BOOL * result ) = 0;
    virtual HRESULT __stdcall ReadMxMaps (
        BSTR fileName,
        VARIANT password,
        struct IArray * * pArray ) = 0;
    virtual HRESULT __stdcall put_OleDropEnabled (
        VARIANT_BOOL Enabled ) = 0;
    virtual HRESULT __stdcall get_OleDropEnabled (
        VARIANT_BOOL * Enabled ) = 0;
    virtual HRESULT __stdcall put_Rotation (
        double Rotation ) = 0;
    virtual HRESULT __stdcall get_Rotation (
        double * Rotation ) = 0;
    virtual HRESULT __stdcall get_MapUnits (
        enum esriUnits * units ) = 0;
    virtual HRESULT __stdcall put_MapUnits (
        enum esriUnits units ) = 0;
    virtual HRESULT __stdcall get_TrackCancel (
        struct ITrackCancel * * ppTrackCancel ) = 0;
    virtual HRESULT __stdcall putref_TrackCancel (
        struct ITrackCancel * ppTrackCancel ) = 0;
};

struct __declspec(uuid("62c52249-8a87-4f7b-83f1-829064f5438e"))
IMapControl3 : IMapControl2
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_CustomProperty (
        VARIANT * pVal ) = 0;
    virtual HRESULT __stdcall put_CustomProperty (
        VARIANT pVal ) = 0;
    virtual HRESULT __stdcall SuppressResizeDrawing (
        VARIANT_BOOL suppressResize,
        long resizeHWnd ) = 0;
    virtual HRESULT __stdcall get_DocumentFilename (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall put_DocumentFilename (
        BSTR pVal ) = 0;
    virtual HRESULT __stdcall get_DocumentMap (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall put_DocumentMap (
        BSTR pVal ) = 0;
    virtual HRESULT __stdcall get_Object (
        IDispatch * * ppDispatch ) = 0;
    virtual HRESULT __stdcall put_ShowMapTips (
        VARIANT_BOOL show ) = 0;
    virtual HRESULT __stdcall get_ShowMapTips (
        VARIANT_BOOL * show ) = 0;
    virtual HRESULT __stdcall put_TipStyle (
        enum esriTipStyle style ) = 0;
    virtual HRESULT __stdcall get_TipStyle (
        enum esriTipStyle * style ) = 0;
    virtual HRESULT __stdcall put_TipDelay (
        int delay ) = 0;
    virtual HRESULT __stdcall get_TipDelay (
        int * delay ) = 0;
    virtual HRESULT __stdcall get_KeyIntercept (
        long * pVal ) = 0;
    virtual HRESULT __stdcall put_KeyIntercept (
        long pVal ) = 0;
};

struct __declspec(uuid("c864e7b1-c5ba-42bb-9c2f-d311f218c55b"))
IMapControlDefault : IDispatch
{};

struct __declspec(uuid("423dbca1-b7e6-11d5-a9de-00104bb6fc1c"))
IMapControlEvents2 : IDispatch
{};

struct __declspec(uuid("c552ea94-6fbb-11d5-a9c1-00104bb6fc1c"))
MapControl;
    // [ default ] dispinterface IMapControlDefault
    // [ default, source ] dispinterface IMapControlEvents2
    // [ source ] interface ITOCBuddyEvents
    // interface IMapControl2
    // interface IMapControl3
    // interface ITOCBuddy
    // interface IToolbarBuddy
    // interface IMxdContents
    // interface IConnectionPointContainer
    // interface IPersistStreamInit
    // interface IPersist
    // interface ISupportErrorInfo

//
// Named GUID constants initializations
//

extern "C" const GUID __declspec(selectany) LIBID_esriMapControl =
    {0xc552ea90,0x6fbb,0x11d5,{0xa9,0xc1,0x00,0x10,0x4b,0xb6,0xfc,0x1c}};
extern "C" const GUID __declspec(selectany) IID_IMapControl2 =
    {0x423dbca0,0xb7e6,0x11d5,{0xa9,0xde,0x00,0x10,0x4b,0xb6,0xfc,0x1c}};
extern "C" const GUID __declspec(selectany) IID_IMapControl3 =
    {0x62c52249,0x8a87,0x4f7b,{0x83,0xf1,0x82,0x90,0x64,0xf5,0x43,0x8e}};
extern "C" const GUID __declspec(selectany) DIID_IMapControlDefault =
    {0xc864e7b1,0xc5ba,0x42bb,{0x9c,0x2f,0xd3,0x11,0xf2,0x18,0xc5,0x5b}};
extern "C" const GUID __declspec(selectany) DIID_IMapControlEvents2 =
    {0x423dbca1,0xb7e6,0x11d5,{0xa9,0xde,0x00,0x10,0x4b,0xb6,0xfc,0x1c}};
extern "C" const GUID __declspec(selectany) CLSID_MapControl =
    {0xc552ea94,0x6fbb,0x11d5,{0xa9,0xc1,0x00,0x10,0x4b,0xb6,0xfc,0x1c}};

#pragma pack(pop)

⌨️ 快捷键说明

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