📄 vbe6ext.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (cd6415c4).
//
// VBE6EXT.tli
//
// Wrapper implementations for Win32 type library C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.olb
// compiler-generated file created 07/21/06 at 20:56:55 - DO NOT EDIT!
#pragma once
//
// interface Application wrapper method implementations
//
inline _bstr_t Application::GetVersion ( ) {
BSTR _result;
HRESULT _hr = get_Version(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
//
// interface VBE wrapper method implementations
//
inline _VBProjectsPtr VBE::GetVBProjects ( ) {
struct _VBProjects * _result;
HRESULT _hr = get_VBProjects(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectsPtr(_result, false);
}
inline Office::_CommandBarsPtr VBE::GetCommandBars ( ) {
struct Office::_CommandBars * _result;
HRESULT _hr = get_CommandBars(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return Office::_CommandBarsPtr(_result, false);
}
inline _CodePanesPtr VBE::GetCodePanes ( ) {
struct _CodePanes * _result;
HRESULT _hr = get_CodePanes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _CodePanesPtr(_result, false);
}
inline _WindowsPtr VBE::GetWindows ( ) {
struct _Windows * _result;
HRESULT _hr = get_Windows(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _WindowsPtr(_result, false);
}
inline EventsPtr VBE::GetEvents ( ) {
struct Events * _result;
HRESULT _hr = get_Events(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return EventsPtr(_result, false);
}
inline _VBProjectPtr VBE::GetActiveVBProject ( ) {
struct _VBProject * _result;
HRESULT _hr = get_ActiveVBProject(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectPtr(_result, false);
}
inline void VBE::PutRefActiveVBProject ( struct _VBProject * lppptReturn ) {
HRESULT _hr = putref_ActiveVBProject(lppptReturn);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _VBComponentPtr VBE::GetSelectedVBComponent ( ) {
struct _VBComponent * _result;
HRESULT _hr = get_SelectedVBComponent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBComponentPtr(_result, false);
}
inline WindowPtr VBE::GetMainWindow ( ) {
struct Window * _result;
HRESULT _hr = get_MainWindow(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WindowPtr(_result, false);
}
inline WindowPtr VBE::GetActiveWindow ( ) {
struct Window * _result;
HRESULT _hr = get_ActiveWindow(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WindowPtr(_result, false);
}
inline _CodePanePtr VBE::GetActiveCodePane ( ) {
struct _CodePane * _result;
HRESULT _hr = get_ActiveCodePane(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _CodePanePtr(_result, false);
}
inline void VBE::PutRefActiveCodePane ( struct _CodePane * ppCodePane ) {
HRESULT _hr = putref_ActiveCodePane(ppCodePane);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _AddInsPtr VBE::GetAddins ( ) {
struct _AddIns * _result;
HRESULT _hr = get_Addins(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _AddInsPtr(_result, false);
}
//
// interface Window wrapper method implementations
//
inline VBEPtr Window::GetVBE ( ) {
struct VBE * _result;
HRESULT _hr = get_VBE(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return VBEPtr(_result, false);
}
inline _WindowsPtr Window::GetCollection ( ) {
struct _Windows * _result;
HRESULT _hr = get_Collection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _WindowsPtr(_result, false);
}
inline HRESULT Window::Close ( ) {
HRESULT _hr = raw_Close();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t Window::GetCaption ( ) {
BSTR _result;
HRESULT _hr = get_Caption(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline VARIANT_BOOL Window::GetVisible ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Visible(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Window::PutVisible ( VARIANT_BOOL pfVisible ) {
HRESULT _hr = put_Visible(pfVisible);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long Window::GetLeft ( ) {
long _result;
HRESULT _hr = get_Left(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Window::PutLeft ( long plLeft ) {
HRESULT _hr = put_Left(plLeft);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long Window::GetTop ( ) {
long _result;
HRESULT _hr = get_Top(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Window::PutTop ( long plTop ) {
HRESULT _hr = put_Top(plTop);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long Window::GetWidth ( ) {
long _result;
HRESULT _hr = get_Width(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Window::PutWidth ( long plWidth ) {
HRESULT _hr = put_Width(plWidth);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long Window::GetHeight ( ) {
long _result;
HRESULT _hr = get_Height(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Window::PutHeight ( long plHeight ) {
HRESULT _hr = put_Height(plHeight);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum vbext_WindowState Window::GetWindowState ( ) {
enum vbext_WindowState _result;
HRESULT _hr = get_WindowState(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Window::PutWindowState ( enum vbext_WindowState plWindowState ) {
HRESULT _hr = put_WindowState(plWindowState);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT Window::SetFocus ( ) {
HRESULT _hr = raw_SetFocus();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum vbext_WindowType Window::GetType ( ) {
enum vbext_WindowType _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT Window::SetKind ( enum vbext_WindowType eKind ) {
HRESULT _hr = raw_SetKind(eKind);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _LinkedWindowsPtr Window::GetLinkedWindows ( ) {
struct _LinkedWindows * _result;
HRESULT _hr = get_LinkedWindows(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _LinkedWindowsPtr(_result, false);
}
inline WindowPtr Window::GetLinkedWindowFrame ( ) {
struct Window * _result;
HRESULT _hr = get_LinkedWindowFrame(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WindowPtr(_result, false);
}
inline HRESULT Window::Detach ( ) {
HRESULT _hr = raw_Detach();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Window::Attach ( long lWindowHandle ) {
HRESULT _hr = raw_Attach(lWindowHandle);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long Window::GetHWnd ( ) {
long _result;
HRESULT _hr = get_HWnd(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface _Windows_old wrapper method implementations
//
inline VBEPtr _Windows_old::GetVBE ( ) {
struct VBE * _result;
HRESULT _hr = get_VBE(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return VBEPtr(_result, false);
}
inline ApplicationPtr _Windows_old::GetParent ( ) {
struct Application * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ApplicationPtr(_result, false);
}
inline WindowPtr _Windows_old::Item ( const _variant_t & index ) {
struct Window * _result;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WindowPtr(_result, false);
}
inline long _Windows_old::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _Windows_old::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
//
// interface _Windows wrapper method implementations
//
inline WindowPtr _Windows::CreateToolWindow ( struct AddIn * AddInInst, _bstr_t ProgId, _bstr_t Caption, _bstr_t GuidPosition, IDispatch * * DocObj ) {
struct Window * _result;
HRESULT _hr = raw_CreateToolWindow(AddInInst, ProgId, Caption, GuidPosition, DocObj, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WindowPtr(_result, false);
}
//
// interface _LinkedWindows wrapper method implementations
//
inline VBEPtr _LinkedWindows::GetVBE ( ) {
struct VBE * _result;
HRESULT _hr = get_VBE(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return VBEPtr(_result, false);
}
inline WindowPtr _LinkedWindows::GetParent ( ) {
struct Window * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WindowPtr(_result, false);
}
inline WindowPtr _LinkedWindows::Item ( const _variant_t & index ) {
struct Window * _result;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WindowPtr(_result, false);
}
inline long _LinkedWindows::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _LinkedWindows::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT _LinkedWindows::Remove ( struct Window * Window ) {
HRESULT _hr = raw_Remove(Window);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _LinkedWindows::Add ( struct Window * Window ) {
HRESULT _hr = raw_Add(Window);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Events wrapper method implementations
//
inline _ReferencesEventsPtr Events::GetReferencesEvents ( struct _VBProject * VBProject ) {
struct _ReferencesEvents * _result;
HRESULT _hr = get_ReferencesEvents(VBProject, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ReferencesEventsPtr(_result, false);
}
inline _CommandBarControlEventsPtr Events::GetCommandBarEvents ( IDispatch * CommandBarControl ) {
struct _CommandBarControlEvents * _result;
HRESULT _hr = get_CommandBarEvents(CommandBarControl, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _CommandBarControlEventsPtr(_result, false);
}
//
// dispinterface _dispVBProjectsEvents wrapper method implementations
//
inline HRESULT _dispVBProjectsEvents::ItemAdded ( struct _VBProject * VBProject ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBProject);
}
inline HRESULT _dispVBProjectsEvents::ItemRemoved ( struct _VBProject * VBProject ) {
return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBProject);
}
inline HRESULT _dispVBProjectsEvents::ItemRenamed ( struct _VBProject * VBProject, _bstr_t OldName ) {
return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x0008", VBProject, (BSTR)OldName);
}
inline HRESULT _dispVBProjectsEvents::ItemActivated ( struct _VBProject * VBProject ) {
return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBProject);
}
//
// dispinterface _dispVBComponentsEvents wrapper method implementations
//
inline HRESULT _dispVBComponentsEvents::ItemAdded ( struct _VBComponent * VBComponent ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBComponent);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -