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

📄 vbe6ext.tlh

📁 word 插件 在word2003+ vc6.0 条件下运行 可以单击弹出atl 的窗口 简单可实现
💻 TLH
📖 第 1 页 / 共 5 页
字号:
        enum vbext_ProcKind ProcKind );
    long GetProcBodyLine (
        _bstr_t ProcName,
        enum vbext_ProcKind ProcKind );
    _bstr_t GetProcOfLine (
        long Line,
        enum vbext_ProcKind * ProcKind );
    long GetCountOfDeclarationLines ( );
    long CreateEventProc (
        _bstr_t EventName,
        _bstr_t ObjectName );
    VARIANT_BOOL Find (
        _bstr_t Target,
        long * StartLine,
        long * StartColumn,
        long * EndLine,
        long * EndColumn,
        VARIANT_BOOL WholeWord,
        VARIANT_BOOL MatchCase,
        VARIANT_BOOL PatternSearch );
    _CodePanePtr GetCodePane ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Parent (
        struct _VBComponent * * retval ) = 0;
    virtual HRESULT __stdcall get_VBE (
        struct VBE * * retval ) = 0;
    virtual HRESULT __stdcall get_Name (
        BSTR * pbstrName ) = 0;
    virtual HRESULT __stdcall put_Name (
        BSTR pbstrName ) = 0;
    virtual HRESULT __stdcall raw_AddFromString (
        BSTR String ) = 0;
    virtual HRESULT __stdcall raw_AddFromFile (
        BSTR FileName ) = 0;
    virtual HRESULT __stdcall get_Lines (
        long StartLine,
        long Count,
        BSTR * String ) = 0;
    virtual HRESULT __stdcall get_CountOfLines (
        long * CountOfLines ) = 0;
    virtual HRESULT __stdcall raw_InsertLines (
        long Line,
        BSTR String ) = 0;
    virtual HRESULT __stdcall raw_DeleteLines (
        long StartLine,
        long Count ) = 0;
    virtual HRESULT __stdcall raw_ReplaceLine (
        long Line,
        BSTR String ) = 0;
    virtual HRESULT __stdcall get_ProcStartLine (
        BSTR ProcName,
        enum vbext_ProcKind ProcKind,
        long * ProcStartLine ) = 0;
    virtual HRESULT __stdcall get_ProcCountLines (
        BSTR ProcName,
        enum vbext_ProcKind ProcKind,
        long * ProcCountLines ) = 0;
    virtual HRESULT __stdcall get_ProcBodyLine (
        BSTR ProcName,
        enum vbext_ProcKind ProcKind,
        long * ProcBodyLine ) = 0;
    virtual HRESULT __stdcall get_ProcOfLine (
        long Line,
        enum vbext_ProcKind * ProcKind,
        BSTR * pbstrName ) = 0;
    virtual HRESULT __stdcall get_CountOfDeclarationLines (
        long * pDeclCountOfLines ) = 0;
    virtual HRESULT __stdcall raw_CreateEventProc (
        BSTR EventName,
        BSTR ObjectName,
        long * Line ) = 0;
    virtual HRESULT __stdcall raw_Find (
        BSTR Target,
        long * StartLine,
        long * StartColumn,
        long * EndLine,
        long * EndColumn,
        VARIANT_BOOL WholeWord,
        VARIANT_BOOL MatchCase,
        VARIANT_BOOL PatternSearch,
        VARIANT_BOOL * pfFound ) = 0;
    virtual HRESULT __stdcall get_CodePane (
        struct _CodePane * * CodePane ) = 0;
};

struct __declspec(uuid("0002e170-0000-0000-c000-000000000046"))
CodeModule;
    // [ default ] interface _CodeModule

struct __declspec(uuid("0002e172-0000-0000-c000-000000000046"))
_CodePanes : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetParent))
    VBEPtr Parent;
    __declspec(property(get=GetVBE))
    VBEPtr VBE;
    __declspec(property(get=GetCount))
    long Count;
    __declspec(property(get=GetCurrent,put=PutCurrent))
    _CodePanePtr Current;

    //
    // Wrapper methods for error-handling
    //

    VBEPtr GetParent ( );
    VBEPtr GetVBE ( );
    _CodePanePtr Item (
        const _variant_t & index );
    long GetCount ( );
    IUnknownPtr _NewEnum ( );
    _CodePanePtr GetCurrent ( );
    void PutCurrent (
        struct _CodePane * CodePane );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Parent (
        struct VBE * * retval ) = 0;
    virtual HRESULT __stdcall get_VBE (
        struct VBE * * retval ) = 0;
    virtual HRESULT __stdcall raw_Item (
        VARIANT index,
        struct _CodePane * * CodePane ) = 0;
    virtual HRESULT __stdcall get_Count (
        long * Count ) = 0;
    virtual HRESULT __stdcall raw__NewEnum (
        IUnknown * * ppenum ) = 0;
    virtual HRESULT __stdcall get_Current (
        struct _CodePane * * CodePane ) = 0;
    virtual HRESULT __stdcall put_Current (
        struct _CodePane * CodePane ) = 0;
};

struct __declspec(uuid("0002e174-0000-0000-c000-000000000046"))
CodePanes;
    // [ default ] interface _CodePanes

enum vbext_CodePaneview
{
    vbext_cv_ProcedureView = 0,
    vbext_cv_FullModuleView = 1
};

struct __declspec(uuid("0002e176-0000-0000-c000-000000000046"))
_CodePane : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetCollection))
    _CodePanesPtr Collection;
    __declspec(property(get=GetVBE))
    VBEPtr VBE;
    __declspec(property(get=GetWindow))
    WindowPtr Window;
    __declspec(property(get=GetTopLine,put=PutTopLine))
    long TopLine;
    __declspec(property(get=GetCountOfVisibleLines))
    long CountOfVisibleLines;
    __declspec(property(get=GetCodeModule))
    _CodeModulePtr CodeModule;
    __declspec(property(get=GetCodePaneView))
    enum vbext_CodePaneview CodePaneView;

    //
    // Wrapper methods for error-handling
    //

    _CodePanesPtr GetCollection ( );
    VBEPtr GetVBE ( );
    WindowPtr GetWindow ( );
    HRESULT GetSelection (
        long * StartLine,
        long * StartColumn,
        long * EndLine,
        long * EndColumn );
    HRESULT SetSelection (
        long StartLine,
        long StartColumn,
        long EndLine,
        long EndColumn );
    long GetTopLine ( );
    void PutTopLine (
        long TopLine );
    long GetCountOfVisibleLines ( );
    _CodeModulePtr GetCodeModule ( );
    HRESULT Show ( );
    enum vbext_CodePaneview GetCodePaneView ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Collection (
        struct _CodePanes * * retval ) = 0;
    virtual HRESULT __stdcall get_VBE (
        struct VBE * * retval ) = 0;
    virtual HRESULT __stdcall get_Window (
        struct Window * * retval ) = 0;
    virtual HRESULT __stdcall raw_GetSelection (
        long * StartLine,
        long * StartColumn,
        long * EndLine,
        long * EndColumn ) = 0;
    virtual HRESULT __stdcall raw_SetSelection (
        long StartLine,
        long StartColumn,
        long EndLine,
        long EndColumn ) = 0;
    virtual HRESULT __stdcall get_TopLine (
        long * TopLine ) = 0;
    virtual HRESULT __stdcall put_TopLine (
        long TopLine ) = 0;
    virtual HRESULT __stdcall get_CountOfVisibleLines (
        long * CountOfVisibleLines ) = 0;
    virtual HRESULT __stdcall get_CodeModule (
        struct _CodeModule * * CodeModule ) = 0;
    virtual HRESULT __stdcall raw_Show ( ) = 0;
    virtual HRESULT __stdcall get_CodePaneView (
        enum vbext_CodePaneview * pCodePaneview ) = 0;
};

struct __declspec(uuid("0002e178-0000-0000-c000-000000000046"))
CodePane;
    // [ default ] interface _CodePane

struct __declspec(uuid("0002e17a-0000-0000-c000-000000000046"))
_References : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetParent))
    _VBProjectPtr Parent;
    __declspec(property(get=GetVBE))
    VBEPtr VBE;
    __declspec(property(get=GetCount))
    long Count;

    //
    // Wrapper methods for error-handling
    //

    _VBProjectPtr GetParent ( );
    VBEPtr GetVBE ( );
    ReferencePtr Item (
        const _variant_t & index );
    long GetCount ( );
    IUnknownPtr _NewEnum ( );
    ReferencePtr AddFromGuid (
        _bstr_t Guid,
        long Major,
        long Minor );
    ReferencePtr AddFromFile (
        _bstr_t FileName );
    HRESULT Remove (
        struct Reference * Reference );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Parent (
        struct _VBProject * * retval ) = 0;
    virtual HRESULT __stdcall get_VBE (
        struct VBE * * retval ) = 0;
    virtual HRESULT __stdcall raw_Item (
        VARIANT index,
        struct Reference * * Reference ) = 0;
    virtual HRESULT __stdcall get_Count (
        long * Count ) = 0;
    virtual HRESULT __stdcall raw__NewEnum (
        IUnknown * * ppenum ) = 0;
    virtual HRESULT __stdcall raw_AddFromGuid (
        BSTR Guid,
        long Major,
        long Minor,
        struct Reference * * Reference ) = 0;
    virtual HRESULT __stdcall raw_AddFromFile (
        BSTR FileName,
        struct Reference * * Reference ) = 0;
    virtual HRESULT __stdcall raw_Remove (
        struct Reference * Reference ) = 0;
};

enum vbext_RefKind
{
    vbext_rk_TypeLib = 0,
    vbext_rk_Project = 1
};

struct __declspec(uuid("0002e17e-0000-0000-c000-000000000046"))
Reference : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetCollection))
    _ReferencesPtr Collection;
    __declspec(property(get=GetVBE))
    VBEPtr VBE;
    __declspec(property(get=GetName))
    _bstr_t Name;
    __declspec(property(get=GetGuid))
    _bstr_t Guid;
    __declspec(property(get=GetMajor))
    long Major;
    __declspec(property(get=GetMinor))
    long Minor;
    __declspec(property(get=GetFullPath))
    _bstr_t FullPath;
    __declspec(property(get=GetBuiltIn))
    VARIANT_BOOL BuiltIn;
    __declspec(property(get=GetIsBroken))
    VARIANT_BOOL IsBroken;
    __declspec(property(get=GetType))
    enum vbext_RefKind Type;
    __declspec(property(get=GetDescription))
    _bstr_t Description;

    //
    // Wrapper methods for error-handling
    //

    _ReferencesPtr GetCollection ( );
    VBEPtr GetVBE ( );
    _bstr_t GetName ( );
    _bstr_t GetGuid ( );
    long GetMajor ( );
    long GetMinor ( );
    _bstr_t GetFullPath ( );
    VARIANT_BOOL GetBuiltIn ( );
    VARIANT_BOOL GetIsBroken ( );
    enum vbext_RefKind GetType ( );
    _bstr_t GetDescription ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Collection (
        struct _References * * retval ) = 0;
    virtual HRESULT __stdcall get_VBE (
        struct VBE * * lppaReturn ) = 0;
    virtual HRESULT __stdcall get_Name (
        BSTR * pbstrName ) = 0;
    virtual HRESULT __stdcall get_Guid (
        BSTR * pbstrGuid ) = 0;
    virtual HRESULT __stdcall get_Major (
        long * pMajor ) = 0;
    virtual HRESULT __stdcall get_Minor (
        long * pMinor ) = 0;
    virtual HRESULT __stdcall get_FullPath (
        BSTR * pbstrLocation ) = 0;
    virtual HRESULT __stdcall get_BuiltIn (
        VARIANT_BOOL * pfIsDefault ) = 0;
    virtual HRESULT __stdcall get_IsBroken (
        VARIANT_BOOL * pfIsBroken ) = 0;
    virtual HRESULT __stdcall get_Type (
        enum vbext_RefKind * pKind ) = 0;
    virtual HRESULT __stdcall get_Description (
        BSTR * pbstrName ) = 0;
};

struct __declspec(uuid("cdde3804-2064-11cf-867f-00aa005ff34a"))
_dispReferences_Events : IDispatch
{
    //
    // Wrapper methods for error-handling
    //

    // Methods:
    HRESULT ItemAdded (
        struct Reference * Reference );
    HRESULT ItemRemoved (
        struct Reference * Reference );
};

struct __declspec(uuid("0002e17c-0000-0000-c000-000000000046"))
References;
    // [ default ] interface _References
    // [ default, source ] dispinterface _dispReferences_Events

//
// Wrapper method implementations
//

#include "VBE6EXT.tli"

} // namespace VBE6

#pragma pack(pop)

⌨️ 快捷键说明

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