📄 vbe6ext.tli
字号:
inline HRESULT _dispVBComponentsEvents::ItemRemoved ( struct _VBComponent * VBComponent ) {
return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBComponent);
}
inline HRESULT _dispVBComponentsEvents::ItemRenamed ( struct _VBComponent * VBComponent, _bstr_t OldName ) {
return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x0008", VBComponent, (BSTR)OldName);
}
inline HRESULT _dispVBComponentsEvents::ItemSelected ( struct _VBComponent * VBComponent ) {
return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBComponent);
}
inline HRESULT _dispVBComponentsEvents::ItemActivated ( struct _VBComponent * VBComponent ) {
return _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBComponent);
}
inline HRESULT _dispVBComponentsEvents::ItemReloaded ( struct _VBComponent * VBComponent ) {
return _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", VBComponent);
}
//
// dispinterface _dispReferencesEvents wrapper method implementations
//
inline HRESULT _dispReferencesEvents::ItemAdded ( struct Reference * Reference ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", Reference);
}
inline HRESULT _dispReferencesEvents::ItemRemoved ( struct Reference * Reference ) {
return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009", Reference);
}
//
// dispinterface _dispCommandBarControlEvents wrapper method implementations
//
inline HRESULT _dispCommandBarControlEvents::Click ( IDispatch * CommandBarControl, VARIANT_BOOL * handled, VARIANT_BOOL * CancelDefault ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x400b\x400b", CommandBarControl, handled, CancelDefault);
}
//
// interface _ProjectTemplate wrapper method implementations
//
inline ApplicationPtr _ProjectTemplate::GetApplication ( ) {
struct Application * _result;
HRESULT _hr = get_Application(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ApplicationPtr(_result, false);
}
inline ApplicationPtr _ProjectTemplate::GetParent ( ) {
struct Application * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ApplicationPtr(_result, false);
}
//
// interface _VBProject_Old wrapper method implementations
//
inline _bstr_t _VBProject_Old::GetHelpFile ( ) {
BSTR _result;
HRESULT _hr = get_HelpFile(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _VBProject_Old::PutHelpFile ( _bstr_t lpbstrHelpFile ) {
HRESULT _hr = put_HelpFile(lpbstrHelpFile);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _VBProject_Old::GetHelpContextID ( ) {
long _result;
HRESULT _hr = get_HelpContextID(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _VBProject_Old::PutHelpContextID ( long lpdwContextID ) {
HRESULT _hr = put_HelpContextID(lpdwContextID);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _VBProject_Old::GetDescription ( ) {
BSTR _result;
HRESULT _hr = get_Description(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _VBProject_Old::PutDescription ( _bstr_t lpbstrDescription ) {
HRESULT _hr = put_Description(lpbstrDescription);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum vbext_VBAMode _VBProject_Old::GetMode ( ) {
enum vbext_VBAMode _result;
HRESULT _hr = get_Mode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _ReferencesPtr _VBProject_Old::GetReferences ( ) {
struct _References * _result;
HRESULT _hr = get_References(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ReferencesPtr(_result, false);
}
inline _bstr_t _VBProject_Old::GetName ( ) {
BSTR _result;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _VBProject_Old::PutName ( _bstr_t lpbstrName ) {
HRESULT _hr = put_Name(lpbstrName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VBEPtr _VBProject_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 _VBProjectsPtr _VBProject_Old::GetCollection ( ) {
struct _VBProjects * _result;
HRESULT _hr = get_Collection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectsPtr(_result, false);
}
inline enum vbext_ProjectProtection _VBProject_Old::GetProtection ( ) {
enum vbext_ProjectProtection _result;
HRESULT _hr = get_Protection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL _VBProject_Old::GetSaved ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Saved(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _VBComponentsPtr _VBProject_Old::GetVBComponents ( ) {
struct _VBComponents * _result;
HRESULT _hr = get_VBComponents(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBComponentsPtr(_result, false);
}
//
// interface _VBProject wrapper method implementations
//
inline HRESULT _VBProject::SaveAs ( _bstr_t FileName ) {
HRESULT _hr = raw_SaveAs(FileName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _VBProject::MakeCompiledFile ( ) {
HRESULT _hr = raw_MakeCompiledFile();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum vbext_ProjectType _VBProject::GetType ( ) {
enum vbext_ProjectType _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t _VBProject::GetFileName ( ) {
BSTR _result;
HRESULT _hr = get_FileName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t _VBProject::GetBuildFileName ( ) {
BSTR _result;
HRESULT _hr = get_BuildFileName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _VBProject::PutBuildFileName ( _bstr_t lpbstrBldFName ) {
HRESULT _hr = put_BuildFileName(lpbstrBldFName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface _VBProjects_Old wrapper method implementations
//
inline _VBProjectPtr _VBProjects_Old::Item ( const _variant_t & index ) {
struct _VBProject * _result;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectPtr(_result, false);
}
inline VBEPtr _VBProjects_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 VBEPtr _VBProjects_Old::GetParent ( ) {
struct VBE * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return VBEPtr(_result, false);
}
inline long _VBProjects_Old::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _VBProjects_Old::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
//
// interface _VBProjects wrapper method implementations
//
inline _VBProjectPtr _VBProjects::Add ( enum vbext_ProjectType Type ) {
struct _VBProject * _result;
HRESULT _hr = raw_Add(Type, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectPtr(_result, false);
}
inline HRESULT _VBProjects::Remove ( struct _VBProject * lpc ) {
HRESULT _hr = raw_Remove(lpc);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _VBProjectPtr _VBProjects::Open ( _bstr_t bstrPath ) {
struct _VBProject * _result;
HRESULT _hr = raw_Open(bstrPath, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectPtr(_result, false);
}
//
// interface SelectedComponents wrapper method implementations
//
inline _ComponentPtr SelectedComponents::Item ( int index ) {
struct _Component * _result;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ComponentPtr(_result, false);
}
inline ApplicationPtr SelectedComponents::GetApplication ( ) {
struct Application * _result;
HRESULT _hr = get_Application(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ApplicationPtr(_result, false);
}
inline _VBProjectPtr SelectedComponents::GetParent ( ) {
struct _VBProject * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectPtr(_result, false);
}
inline long SelectedComponents::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr SelectedComponents::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
//
// interface _Components wrapper method implementations
//
inline _ComponentPtr _Components::Item ( const _variant_t & index ) {
struct _Component * _result;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ComponentPtr(_result, false);
}
inline ApplicationPtr _Components::GetApplication ( ) {
struct Application * _result;
HRESULT _hr = get_Application(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ApplicationPtr(_result, false);
}
inline _VBProjectPtr _Components::GetParent ( ) {
struct _VBProject * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectPtr(_result, false);
}
inline long _Components::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _Components::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT _Components::Remove ( struct _Component * Component ) {
HRESULT _hr = raw_Remove(Component);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _ComponentPtr _Components::Add ( enum vbext_ComponentType ComponentType ) {
struct _Component * _result;
HRESULT _hr = raw_Add(ComponentType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ComponentPtr(_result, false);
}
inline _ComponentPtr _Components::Import ( _bstr_t FileName ) {
struct _Component * _result;
HRESULT _hr = raw_Import(FileName, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ComponentPtr(_result, false);
}
inline VBEPtr _Components::GetVBE ( ) {
struct VBE * _result;
HRESULT _hr = get_VBE(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return VBEPtr(_result, false);
}
//
// interface _VBComponents_Old wrapper method implementations
//
inline _VBComponentPtr _VBComponents_Old::Item ( const _variant_t & index ) {
struct _VBComponent * _result;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBComponentPtr(_result, false);
}
inline _VBProjectPtr _VBComponents_Old::GetParent ( ) {
struct _VBProject * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _VBProjectPtr(_result, false);
}
inline long _VBComponents_Old::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _VBComponents_Old::_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT _VBComponents_Old::Remove ( struct _VBComponent * VBComponent ) {
HRESULT _hr = raw_Remove(VBComponent);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _VBComponentPtr _VBComponents_Old::Add ( enum vbext_ComponentType ComponentType ) {
struct _VBComponent * _result;
HRESULT _hr = raw_Add(ComponentType, &_result);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -