📄 vbe6ext.tlh
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.9782.0 (0ea7df36).
//
// c:\documents and settings\st600715\桌面\kyoffice\kyoffice\releasemindependency\VBE6EXT.tlh
//
// C++ source equivalent of Win32 type library C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.olb
// compiler-generated file created 05/24/04 at 10:46:19 - DO NOT EDIT!
//
// Cross-referenced type libraries:
//
// #import "C:\Program Files\Common Files\Microsoft Shared\OFFICE11\MSO.DLL"
//
#pragma once
#pragma pack(push, 8)
#include <comdef.h>
namespace VBE6 {
//
// Forward references and typedefs
//
struct __declspec(uuid("0002e158-0000-0000-c000-000000000046"))
/* dual interface */ Application;
struct __declspec(uuid("0002e166-0000-0000-c000-000000000046"))
/* dual interface */ VBE;
struct __declspec(uuid("0002e16b-0000-0000-c000-000000000046"))
/* dual interface */ Window;
struct __declspec(uuid("0002e16a-0000-0000-c000-000000000046"))
/* dual interface */ _Windows_old;
struct __declspec(uuid("f57b7ed0-d8ab-11d1-85df-00c04f98f42c"))
/* dual interface */ _Windows;
struct /* coclass */ Windows;
struct __declspec(uuid("0002e16c-0000-0000-c000-000000000046"))
/* dual interface */ _LinkedWindows;
struct /* coclass */ LinkedWindows;
struct __declspec(uuid("0002e167-0000-0000-c000-000000000046"))
/* dual interface */ Events;
struct __declspec(uuid("0002e113-0000-0000-c000-000000000046"))
/* interface */ _VBProjectsEvents;
struct __declspec(uuid("0002e103-0000-0000-c000-000000000046"))
/* dispinterface */ _dispVBProjectsEvents;
struct __declspec(uuid("0002e115-0000-0000-c000-000000000046"))
/* interface */ _VBComponentsEvents;
struct __declspec(uuid("0002e116-0000-0000-c000-000000000046"))
/* dispinterface */ _dispVBComponentsEvents;
struct __declspec(uuid("0002e11a-0000-0000-c000-000000000046"))
/* interface */ _ReferencesEvents;
struct __declspec(uuid("0002e118-0000-0000-c000-000000000046"))
/* dispinterface */ _dispReferencesEvents;
struct /* coclass */ ReferencesEvents;
struct __declspec(uuid("0002e130-0000-0000-c000-000000000046"))
/* interface */ _CommandBarControlEvents;
struct __declspec(uuid("0002e131-0000-0000-c000-000000000046"))
/* dispinterface */ _dispCommandBarControlEvents;
struct /* coclass */ CommandBarEvents;
struct __declspec(uuid("0002e159-0000-0000-c000-000000000046"))
/* dual interface */ _ProjectTemplate;
struct /* coclass */ ProjectTemplate;
struct __declspec(uuid("0002e160-0000-0000-c000-000000000046"))
/* dual interface */ _VBProject_Old;
struct __declspec(uuid("eee00915-e393-11d1-bb03-00c04fb6c4a6"))
/* dual interface */ _VBProject;
struct /* coclass */ VBProject;
struct __declspec(uuid("0002e165-0000-0000-c000-000000000046"))
/* dual interface */ _VBProjects_Old;
struct __declspec(uuid("eee00919-e393-11d1-bb03-00c04fb6c4a6"))
/* dual interface */ _VBProjects;
struct /* coclass */ VBProjects;
struct __declspec(uuid("be39f3d4-1b13-11d0-887f-00a0c90f2744"))
/* dual interface */ SelectedComponents;
struct __declspec(uuid("0002e161-0000-0000-c000-000000000046"))
/* dual interface */ _Components;
struct /* coclass */ Components;
struct __declspec(uuid("0002e162-0000-0000-c000-000000000046"))
/* dual interface */ _VBComponents_Old;
struct __declspec(uuid("eee0091c-e393-11d1-bb03-00c04fb6c4a6"))
/* dual interface */ _VBComponents;
struct /* coclass */ VBComponents;
struct __declspec(uuid("0002e163-0000-0000-c000-000000000046"))
/* dual interface */ _Component;
struct /* coclass */ Component;
struct __declspec(uuid("0002e164-0000-0000-c000-000000000046"))
/* dual interface */ _VBComponent_Old;
struct __declspec(uuid("eee00921-e393-11d1-bb03-00c04fb6c4a6"))
/* dual interface */ _VBComponent;
struct /* coclass */ VBComponent;
struct __declspec(uuid("0002e18c-0000-0000-c000-000000000046"))
/* dual interface */ Property;
struct __declspec(uuid("0002e188-0000-0000-c000-000000000046"))
/* dual interface */ _Properties;
struct /* coclass */ Properties;
struct __declspec(uuid("da936b62-ac8b-11d1-b6e5-00a0c90f2744"))
/* dual interface */ _AddIns;
struct /* coclass */ Addins;
struct __declspec(uuid("da936b64-ac8b-11d1-b6e5-00a0c90f2744"))
/* dual interface */ AddIn;
struct __declspec(uuid("0002e16e-0000-0000-c000-000000000046"))
/* dual interface */ _CodeModule;
struct /* coclass */ CodeModule;
struct __declspec(uuid("0002e172-0000-0000-c000-000000000046"))
/* dual interface */ _CodePanes;
struct /* coclass */ CodePanes;
struct __declspec(uuid("0002e176-0000-0000-c000-000000000046"))
/* dual interface */ _CodePane;
struct /* coclass */ CodePane;
struct __declspec(uuid("0002e17a-0000-0000-c000-000000000046"))
/* dual interface */ _References;
struct __declspec(uuid("0002e17e-0000-0000-c000-000000000046"))
/* dual interface */ Reference;
struct __declspec(uuid("cdde3804-2064-11cf-867f-00aa005ff34a"))
/* dispinterface */ _dispReferences_Events;
struct /* coclass */ References;
//
// Smart pointer typedef declarations
//
_COM_SMARTPTR_TYPEDEF(Application, __uuidof(Application));
_COM_SMARTPTR_TYPEDEF(VBE, __uuidof(VBE));
_COM_SMARTPTR_TYPEDEF(Window, __uuidof(Window));
_COM_SMARTPTR_TYPEDEF(_Windows_old, __uuidof(_Windows_old));
_COM_SMARTPTR_TYPEDEF(_Windows, __uuidof(_Windows));
_COM_SMARTPTR_TYPEDEF(_LinkedWindows, __uuidof(_LinkedWindows));
_COM_SMARTPTR_TYPEDEF(Events, __uuidof(Events));
_COM_SMARTPTR_TYPEDEF(_VBProjectsEvents, __uuidof(_VBProjectsEvents));
_COM_SMARTPTR_TYPEDEF(_dispVBProjectsEvents, __uuidof(IDispatch));
_COM_SMARTPTR_TYPEDEF(_VBComponentsEvents, __uuidof(_VBComponentsEvents));
_COM_SMARTPTR_TYPEDEF(_dispVBComponentsEvents, __uuidof(IDispatch));
_COM_SMARTPTR_TYPEDEF(_ReferencesEvents, __uuidof(_ReferencesEvents));
_COM_SMARTPTR_TYPEDEF(_dispReferencesEvents, __uuidof(IDispatch));
_COM_SMARTPTR_TYPEDEF(_CommandBarControlEvents, __uuidof(_CommandBarControlEvents));
_COM_SMARTPTR_TYPEDEF(_dispCommandBarControlEvents, __uuidof(IDispatch));
_COM_SMARTPTR_TYPEDEF(_ProjectTemplate, __uuidof(_ProjectTemplate));
_COM_SMARTPTR_TYPEDEF(_VBProject_Old, __uuidof(_VBProject_Old));
_COM_SMARTPTR_TYPEDEF(_VBProject, __uuidof(_VBProject));
_COM_SMARTPTR_TYPEDEF(_VBProjects_Old, __uuidof(_VBProjects_Old));
_COM_SMARTPTR_TYPEDEF(_VBProjects, __uuidof(_VBProjects));
_COM_SMARTPTR_TYPEDEF(SelectedComponents, __uuidof(SelectedComponents));
_COM_SMARTPTR_TYPEDEF(_Components, __uuidof(_Components));
_COM_SMARTPTR_TYPEDEF(_VBComponents_Old, __uuidof(_VBComponents_Old));
_COM_SMARTPTR_TYPEDEF(_VBComponents, __uuidof(_VBComponents));
_COM_SMARTPTR_TYPEDEF(_Component, __uuidof(_Component));
_COM_SMARTPTR_TYPEDEF(_VBComponent_Old, __uuidof(_VBComponent_Old));
_COM_SMARTPTR_TYPEDEF(_VBComponent, __uuidof(_VBComponent));
_COM_SMARTPTR_TYPEDEF(Property, __uuidof(Property));
_COM_SMARTPTR_TYPEDEF(_Properties, __uuidof(_Properties));
_COM_SMARTPTR_TYPEDEF(_AddIns, __uuidof(_AddIns));
_COM_SMARTPTR_TYPEDEF(AddIn, __uuidof(AddIn));
_COM_SMARTPTR_TYPEDEF(_CodeModule, __uuidof(_CodeModule));
_COM_SMARTPTR_TYPEDEF(_CodePanes, __uuidof(_CodePanes));
_COM_SMARTPTR_TYPEDEF(_CodePane, __uuidof(_CodePane));
_COM_SMARTPTR_TYPEDEF(_References, __uuidof(_References));
_COM_SMARTPTR_TYPEDEF(Reference, __uuidof(Reference));
_COM_SMARTPTR_TYPEDEF(_dispReferences_Events, __uuidof(IDispatch));
//
// Type library items
//
struct __declspec(uuid("0002e158-0000-0000-c000-000000000046"))
Application : IDispatch
{
//
// Property data
//
__declspec(property(get=GetVersion))
_bstr_t Version;
//
// Wrapper methods for error-handling
//
_bstr_t GetVersion ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Version (
BSTR * lpbstrReturn ) = 0;
};
enum vbextFileTypes
{
vbextFileTypeForm = 0,
vbextFileTypeModule = 1,
vbextFileTypeClass = 2,
vbextFileTypeProject = 3,
vbextFileTypeExe = 4,
vbextFileTypeFrx = 5,
vbextFileTypeRes = 6,
vbextFileTypeUserControl = 7,
vbextFileTypePropertyPage = 8,
vbextFileTypeDocObject = 9,
vbextFileTypeBinary = 10,
vbextFileTypeGroupProject = 11,
vbextFileTypeDesigners = 12
};
struct __declspec(uuid("0002e166-0000-0000-c000-000000000046"))
VBE : Application
{
//
// Property data
//
__declspec(property(get=GetActiveVBProject,put=PutRefActiveVBProject))
_VBProjectPtr ActiveVBProject;
__declspec(property(get=GetSelectedVBComponent))
_VBComponentPtr SelectedVBComponent;
__declspec(property(get=GetVBProjects))
_VBProjectsPtr VBProjects;
__declspec(property(get=GetCommandBars))
_CommandBarsPtr CommandBars;
__declspec(property(get=GetCodePanes))
_CodePanesPtr CodePanes;
__declspec(property(get=GetWindows))
_WindowsPtr Windows;
__declspec(property(get=GetEvents))
EventsPtr Events;
__declspec(property(get=GetMainWindow))
WindowPtr MainWindow;
__declspec(property(get=GetActiveWindow))
WindowPtr ActiveWindow;
__declspec(property(get=GetActiveCodePane,put=PutRefActiveCodePane))
_CodePanePtr ActiveCodePane;
__declspec(property(get=GetAddins))
_AddInsPtr Addins;
//
// Wrapper methods for error-handling
//
_VBProjectsPtr GetVBProjects ( );
_CommandBarsPtr GetCommandBars ( );
_CodePanesPtr GetCodePanes ( );
_WindowsPtr GetWindows ( );
EventsPtr GetEvents ( );
_VBProjectPtr GetActiveVBProject ( );
void PutRefActiveVBProject (
struct _VBProject * lppptReturn );
_VBComponentPtr GetSelectedVBComponent ( );
WindowPtr GetMainWindow ( );
WindowPtr GetActiveWindow ( );
_CodePanePtr GetActiveCodePane ( );
void PutRefActiveCodePane (
struct _CodePane * ppCodePane );
_AddInsPtr GetAddins ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_VBProjects (
struct _VBProjects * * lppptReturn ) = 0;
virtual HRESULT __stdcall get_CommandBars (
struct _CommandBars * * ppcbs ) = 0;
virtual HRESULT __stdcall get_CodePanes (
struct _CodePanes * * ppCodePanes ) = 0;
virtual HRESULT __stdcall get_Windows (
struct _Windows * * ppwnsVBWindows ) = 0;
virtual HRESULT __stdcall get_Events (
struct Events * * ppevtEvents ) = 0;
virtual HRESULT __stdcall get_ActiveVBProject (
struct _VBProject * * lppptReturn ) = 0;
virtual HRESULT __stdcall putref_ActiveVBProject (
struct _VBProject * lppptReturn ) = 0;
virtual HRESULT __stdcall get_SelectedVBComponent (
struct _VBComponent * * lppscReturn ) = 0;
virtual HRESULT __stdcall get_MainWindow (
struct Window * * ppwin ) = 0;
virtual HRESULT __stdcall get_ActiveWindow (
struct Window * * ppwinActive ) = 0;
virtual HRESULT __stdcall get_ActiveCodePane (
struct _CodePane * * ppCodePane ) = 0;
virtual HRESULT __stdcall putref_ActiveCodePane (
struct _CodePane * ppCodePane ) = 0;
virtual HRESULT __stdcall get_Addins (
struct _AddIns * * lpppAddIns ) = 0;
};
enum vbext_WindowType
{
vbext_wt_CodeWindow = 0,
vbext_wt_Designer = 1,
vbext_wt_Browser = 2,
vbext_wt_Watch = 3,
vbext_wt_Locals = 4,
vbext_wt_Immediate = 5,
vbext_wt_ProjectWindow = 6,
vbext_wt_PropertyWindow = 7,
vbext_wt_Find = 8,
vbext_wt_FindReplace = 9,
vbext_wt_Toolbox = 10,
vbext_wt_LinkedWindowFrame = 11,
vbext_wt_MainWindow = 12,
vbext_wt_ToolWindow = 15
};
enum vbext_WindowState
{
vbext_ws_Normal = 0,
vbext_ws_Minimize = 1,
vbext_ws_Maximize = 2
};
struct __declspec(uuid("0002e16b-0000-0000-c000-000000000046"))
Window : IDispatch
{
//
// Property data
//
__declspec(property(get=GetVBE))
VBEPtr VBE;
__declspec(property(get=GetCollection))
_WindowsPtr Collection;
__declspec(property(get=GetCaption))
_bstr_t Caption;
__declspec(property(get=GetLeft,put=PutLeft))
long Left;
__declspec(property(get=GetTop,put=PutTop))
long Top;
__declspec(property(get=GetWidth,put=PutWidth))
long Width;
__declspec(property(get=GetVisible,put=PutVisible))
VARIANT_BOOL Visible;
__declspec(property(get=GetHeight,put=PutHeight))
long Height;
__declspec(property(get=GetWindowState,put=PutWindowState))
enum vbext_WindowState WindowState;
__declspec(property(get=GetType))
enum vbext_WindowType Type;
__declspec(property(get=GetLinkedWindows))
_LinkedWindowsPtr LinkedWindows;
__declspec(property(get=GetLinkedWindowFrame))
WindowPtr LinkedWindowFrame;
__declspec(property(get=GetHWnd))
long HWnd;
//
// Wrapper methods for error-handling
//
VBEPtr GetVBE ( );
_WindowsPtr GetCollection ( );
HRESULT Close ( );
_bstr_t GetCaption ( );
VARIANT_BOOL GetVisible ( );
void PutVisible (
VARIANT_BOOL pfVisible );
long GetLeft ( );
void PutLeft (
long plLeft );
long GetTop ( );
void PutTop (
long plTop );
long GetWidth ( );
void PutWidth (
long plWidth );
long GetHeight ( );
void PutHeight (
long plHeight );
enum vbext_WindowState GetWindowState ( );
void PutWindowState (
enum vbext_WindowState plWindowState );
HRESULT SetFocus ( );
enum vbext_WindowType GetType ( );
HRESULT SetKind (
enum vbext_WindowType eKind );
_LinkedWindowsPtr GetLinkedWindows ( );
WindowPtr GetLinkedWindowFrame ( );
HRESULT Detach ( );
HRESULT Attach (
long lWindowHandle );
long GetHWnd ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_VBE (
struct VBE * * lppaReturn ) = 0;
virtual HRESULT __stdcall get_Collection (
struct _Windows * * lppaReturn ) = 0;
virtual HRESULT __stdcall raw_Close ( ) = 0;
virtual HRESULT __stdcall get_Caption (
BSTR * pbstrTitle ) = 0;
virtual HRESULT __stdcall get_Visible (
VARIANT_BOOL * pfVisible ) = 0;
virtual HRESULT __stdcall put_Visible (
VARIANT_BOOL pfVisible ) = 0;
virtual HRESULT __stdcall get_Left (
long * plLeft ) = 0;
virtual HRESULT __stdcall put_Left (
long plLeft ) = 0;
virtual HRESULT __stdcall get_Top (
long * plTop ) = 0;
virtual HRESULT __stdcall put_Top (
long plTop ) = 0;
virtual HRESULT __stdcall get_Width (
long * plWidth ) = 0;
virtual HRESULT __stdcall put_Width (
long plWidth ) = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -