📄 mso9.tli
字号:
HRESULT _hr = get_Caption(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(96)
inline void Office::CommandBarControl::PutCaption ( _bstr_t pbstrCaption ) {
HRESULT _hr = put_Caption(pbstrCaption);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(97)
inline IDispatchPtr Office::CommandBarControl::GetControl ( ) {
IDispatch * _result;
HRESULT _hr = get_Control(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
#pragma implementation_key(98)
inline Office::CommandBarControlPtr Office::CommandBarControl::Copy ( const _variant_t & Bar, const _variant_t & Before ) {
struct CommandBarControl * _result;
HRESULT _hr = raw_Copy(Bar, Before, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarControlPtr(_result, false);
}
#pragma implementation_key(99)
inline HRESULT Office::CommandBarControl::Delete ( const _variant_t & Temporary ) {
HRESULT _hr = raw_Delete(Temporary);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(100)
inline _bstr_t Office::CommandBarControl::GetDescriptionText ( ) {
BSTR _result;
HRESULT _hr = get_DescriptionText(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(101)
inline void Office::CommandBarControl::PutDescriptionText ( _bstr_t pbstrText ) {
HRESULT _hr = put_DescriptionText(pbstrText);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(102)
inline VARIANT_BOOL Office::CommandBarControl::GetEnabled ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Enabled(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(103)
inline void Office::CommandBarControl::PutEnabled ( VARIANT_BOOL pvarfEnabled ) {
HRESULT _hr = put_Enabled(pvarfEnabled);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(104)
inline HRESULT Office::CommandBarControl::Execute ( ) {
HRESULT _hr = raw_Execute();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(105)
inline int Office::CommandBarControl::GetHeight ( ) {
int _result;
HRESULT _hr = get_Height(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(106)
inline void Office::CommandBarControl::PutHeight ( int pdy ) {
HRESULT _hr = put_Height(pdy);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(107)
inline int Office::CommandBarControl::GetHelpContextId ( ) {
int _result;
HRESULT _hr = get_HelpContextId(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(108)
inline void Office::CommandBarControl::PutHelpContextId ( int pid ) {
HRESULT _hr = put_HelpContextId(pid);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(109)
inline _bstr_t Office::CommandBarControl::GetHelpFile ( ) {
BSTR _result;
HRESULT _hr = get_HelpFile(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(110)
inline void Office::CommandBarControl::PutHelpFile ( _bstr_t pbstrFilename ) {
HRESULT _hr = put_HelpFile(pbstrFilename);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(111)
inline int Office::CommandBarControl::GetId ( ) {
int _result;
HRESULT _hr = get_Id(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(112)
inline int Office::CommandBarControl::GetIndex ( ) {
int _result;
HRESULT _hr = get_Index(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(113)
inline long Office::CommandBarControl::GetInstanceId ( ) {
long _result;
HRESULT _hr = get_InstanceId(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(114)
inline Office::CommandBarControlPtr Office::CommandBarControl::Move ( const _variant_t & Bar, const _variant_t & Before ) {
struct CommandBarControl * _result;
HRESULT _hr = raw_Move(Bar, Before, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarControlPtr(_result, false);
}
#pragma implementation_key(115)
inline int Office::CommandBarControl::GetLeft ( ) {
int _result;
HRESULT _hr = get_Left(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(116)
inline enum MsoControlOLEUsage Office::CommandBarControl::GetOLEUsage ( ) {
enum MsoControlOLEUsage _result;
HRESULT _hr = get_OLEUsage(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(117)
inline void Office::CommandBarControl::PutOLEUsage ( enum MsoControlOLEUsage pcou ) {
HRESULT _hr = put_OLEUsage(pcou);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(118)
inline _bstr_t Office::CommandBarControl::GetOnAction ( ) {
BSTR _result;
HRESULT _hr = get_OnAction(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(119)
inline void Office::CommandBarControl::PutOnAction ( _bstr_t pbstrOnAction ) {
HRESULT _hr = put_OnAction(pbstrOnAction);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(120)
inline Office::CommandBarPtr Office::CommandBarControl::GetParent ( ) {
struct CommandBar * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarPtr(_result, false);
}
#pragma implementation_key(121)
inline _bstr_t Office::CommandBarControl::GetParameter ( ) {
BSTR _result;
HRESULT _hr = get_Parameter(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(122)
inline void Office::CommandBarControl::PutParameter ( _bstr_t pbstrParam ) {
HRESULT _hr = put_Parameter(pbstrParam);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(123)
inline int Office::CommandBarControl::GetPriority ( ) {
int _result;
HRESULT _hr = get_Priority(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(124)
inline void Office::CommandBarControl::PutPriority ( int pnPri ) {
HRESULT _hr = put_Priority(pnPri);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(125)
inline HRESULT Office::CommandBarControl::Reset ( ) {
HRESULT _hr = raw_Reset();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(126)
inline HRESULT Office::CommandBarControl::SetFocus ( ) {
HRESULT _hr = raw_SetFocus();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(127)
inline _bstr_t Office::CommandBarControl::GetTag ( ) {
BSTR _result;
HRESULT _hr = get_Tag(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(128)
inline void Office::CommandBarControl::PutTag ( _bstr_t pbstrTag ) {
HRESULT _hr = put_Tag(pbstrTag);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(129)
inline _bstr_t Office::CommandBarControl::GetTooltipText ( ) {
BSTR _result;
HRESULT _hr = get_TooltipText(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(130)
inline void Office::CommandBarControl::PutTooltipText ( _bstr_t pbstrTooltip ) {
HRESULT _hr = put_TooltipText(pbstrTooltip);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(131)
inline int Office::CommandBarControl::GetTop ( ) {
int _result;
HRESULT _hr = get_Top(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(132)
inline enum MsoControlType Office::CommandBarControl::GetType ( ) {
enum MsoControlType _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(133)
inline VARIANT_BOOL Office::CommandBarControl::GetVisible ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Visible(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(134)
inline void Office::CommandBarControl::PutVisible ( VARIANT_BOOL pvarfVisible ) {
HRESULT _hr = put_Visible(pvarfVisible);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(135)
inline int Office::CommandBarControl::GetWidth ( ) {
int _result;
HRESULT _hr = get_Width(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(136)
inline void Office::CommandBarControl::PutWidth ( int pdx ) {
HRESULT _hr = put_Width(pdx);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(137)
inline VARIANT_BOOL Office::CommandBarControl::GetIsPriorityDropped ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_IsPriorityDropped(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(138)
inline HRESULT Office::CommandBarControl::Reserved1 ( ) {
HRESULT _hr = raw_Reserved1();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(139)
inline HRESULT Office::CommandBarControl::Reserved2 ( ) {
HRESULT _hr = raw_Reserved2();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(140)
inline HRESULT Office::CommandBarControl::Reserved3 ( ) {
HRESULT _hr = raw_Reserved3();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(141)
inline HRESULT Office::CommandBarControl::Reserved4 ( ) {
HRESULT _hr = raw_Reserved4();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(142)
inline HRESULT Office::CommandBarControl::Reserved5 ( ) {
HRESULT _hr = raw_Reserved5();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(143)
inline HRESULT Office::CommandBarControl::Reserved6 ( ) {
HRESULT _hr = raw_Reserved6();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(144)
inline HRESULT Office::CommandBarControl::Reserved7 ( ) {
HRESULT _hr = raw_Reserved7();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _CommandBarButton wrapper method implementations
//
#pragma implementation_key(145)
inline VARIANT_BOOL Office::_CommandBarButton::GetBuiltInFace ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_BuiltInFace(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(146)
inline void Office::_CommandBarButton::PutBuiltInFace ( VARIANT_BOOL pvarfBuiltIn ) {
HRESULT _hr = put_BuiltInFace(pvarfBuiltIn);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -