📄 mso9.tlh
字号:
__declspec(property(get=GetProtection,put=PutProtection))
enum MsoBarProtection Protection;
__declspec(property(get=GetTop,put=PutTop))
int Top;
__declspec(property(get=GetType))
enum MsoBarType Type;
__declspec(property(get=GetVisible,put=PutVisible))
VARIANT_BOOL Visible;
//
// Wrapper methods for error-handling
//
VARIANT_BOOL GetBuiltIn ( );
_bstr_t GetContext ( );
void PutContext (
_bstr_t pbstrContext );
CommandBarControlsPtr GetControls ( );
HRESULT Delete ( );
VARIANT_BOOL GetEnabled ( );
void PutEnabled (
VARIANT_BOOL pvarfEnabled );
CommandBarControlPtr FindControl (
const _variant_t & Type = vtMissing,
const _variant_t & Id = vtMissing,
const _variant_t & Tag = vtMissing,
const _variant_t & Visible = vtMissing,
const _variant_t & Recursive = vtMissing );
int GetHeight ( );
void PutHeight (
int pdy );
int GetIndex ( );
long GetInstanceId ( );
int GetLeft ( );
void PutLeft (
int pxpLeft );
_bstr_t GetName ( );
void PutName (
_bstr_t pbstrName );
_bstr_t GetNameLocal ( );
void PutNameLocal (
_bstr_t pbstrNameLocal );
IDispatchPtr GetParent ( );
enum MsoBarPosition GetPosition ( );
void PutPosition (
enum MsoBarPosition ppos );
int GetRowIndex ( );
void PutRowIndex (
int piRow );
enum MsoBarProtection GetProtection ( );
void PutProtection (
enum MsoBarProtection pprot );
HRESULT Reset ( );
HRESULT ShowPopup (
const _variant_t & x = vtMissing,
const _variant_t & y = vtMissing );
int GetTop ( );
void PutTop (
int pypTop );
enum MsoBarType GetType ( );
VARIANT_BOOL GetVisible ( );
void PutVisible (
VARIANT_BOOL pvarfVisible );
int GetWidth ( );
void PutWidth (
int pdx );
VARIANT_BOOL GetAdaptiveMenu ( );
void PutAdaptiveMenu (
VARIANT_BOOL pvarfAdaptiveMenu );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_BuiltIn (
VARIANT_BOOL * pvarfBuiltIn ) = 0;
virtual HRESULT __stdcall get_Context (
BSTR * pbstrContext ) = 0;
virtual HRESULT __stdcall put_Context (
BSTR pbstrContext ) = 0;
virtual HRESULT __stdcall get_Controls (
struct CommandBarControls * * ppcbcs ) = 0;
virtual HRESULT __stdcall raw_Delete ( ) = 0;
virtual HRESULT __stdcall get_Enabled (
VARIANT_BOOL * pvarfEnabled ) = 0;
virtual HRESULT __stdcall put_Enabled (
VARIANT_BOOL pvarfEnabled ) = 0;
virtual HRESULT __stdcall raw_FindControl (
VARIANT Type,
VARIANT Id,
VARIANT Tag,
VARIANT Visible,
VARIANT Recursive,
struct CommandBarControl * * ppcbc ) = 0;
virtual HRESULT __stdcall get_Height (
int * pdy ) = 0;
virtual HRESULT __stdcall put_Height (
int pdy ) = 0;
virtual HRESULT __stdcall get_Index (
int * pi ) = 0;
virtual HRESULT __stdcall get_InstanceId (
long * pid ) = 0;
virtual HRESULT __stdcall get_Left (
int * pxpLeft ) = 0;
virtual HRESULT __stdcall put_Left (
int pxpLeft ) = 0;
virtual HRESULT __stdcall get_Name (
BSTR * pbstrName ) = 0;
virtual HRESULT __stdcall put_Name (
BSTR pbstrName ) = 0;
virtual HRESULT __stdcall get_NameLocal (
BSTR * pbstrNameLocal ) = 0;
virtual HRESULT __stdcall put_NameLocal (
BSTR pbstrNameLocal ) = 0;
virtual HRESULT __stdcall get_Parent (
IDispatch * * ppidisp ) = 0;
virtual HRESULT __stdcall get_Position (
enum MsoBarPosition * ppos ) = 0;
virtual HRESULT __stdcall put_Position (
enum MsoBarPosition ppos ) = 0;
virtual HRESULT __stdcall get_RowIndex (
int * piRow ) = 0;
virtual HRESULT __stdcall put_RowIndex (
int piRow ) = 0;
virtual HRESULT __stdcall get_Protection (
enum MsoBarProtection * pprot ) = 0;
virtual HRESULT __stdcall put_Protection (
enum MsoBarProtection pprot ) = 0;
virtual HRESULT __stdcall raw_Reset ( ) = 0;
virtual HRESULT __stdcall raw_ShowPopup (
VARIANT x = vtMissing,
VARIANT y = vtMissing ) = 0;
virtual HRESULT __stdcall get_Top (
int * pypTop ) = 0;
virtual HRESULT __stdcall put_Top (
int pypTop ) = 0;
virtual HRESULT __stdcall get_Type (
enum MsoBarType * ptype ) = 0;
virtual HRESULT __stdcall get_Visible (
VARIANT_BOOL * pvarfVisible ) = 0;
virtual HRESULT __stdcall put_Visible (
VARIANT_BOOL pvarfVisible ) = 0;
virtual HRESULT __stdcall get_Width (
int * pdx ) = 0;
virtual HRESULT __stdcall put_Width (
int pdx ) = 0;
virtual HRESULT __stdcall get_AdaptiveMenu (
VARIANT_BOOL * pvarfAdaptiveMenu ) = 0;
virtual HRESULT __stdcall put_AdaptiveMenu (
VARIANT_BOOL pvarfAdaptiveMenu ) = 0;
};
struct __declspec(uuid("000c0306-0000-0000-c000-000000000046"))
CommandBarControls : _IMsoDispObj
{
//
// Property data
//
__declspec(property(get=GetItem))
CommandBarControlPtr Item[];
__declspec(property(get=GetCount))
int Count;
__declspec(property(get=GetParent))
CommandBarPtr Parent;
__declspec(property(get=Get_NewEnum))
IUnknownPtr _NewEnum;
//
// Wrapper methods for error-handling
//
CommandBarControlPtr Add (
const _variant_t & Type = vtMissing,
const _variant_t & Id = vtMissing,
const _variant_t & Parameter = vtMissing,
const _variant_t & Before = vtMissing,
const _variant_t & Temporary = vtMissing );
int GetCount ( );
CommandBarControlPtr GetItem (
const _variant_t & Index );
IUnknownPtr Get_NewEnum ( );
CommandBarPtr GetParent ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Add (
VARIANT Type,
VARIANT Id,
VARIANT Parameter,
VARIANT Before,
VARIANT Temporary,
struct CommandBarControl * * ppcbc ) = 0;
virtual HRESULT __stdcall get_Count (
int * pcToolbarControls ) = 0;
virtual HRESULT __stdcall get_Item (
VARIANT Index,
struct CommandBarControl * * ppcbc ) = 0;
virtual HRESULT __stdcall get__NewEnum (
IUnknown * * ppienum ) = 0;
virtual HRESULT __stdcall get_Parent (
struct CommandBar * * ppcb ) = 0;
};
struct __declspec(uuid("000c0308-0000-0000-c000-000000000046"))
CommandBarControl : _IMsoOleAccDispObj
{
//
// Property data
//
__declspec(property(get=GetBeginGroup,put=PutBeginGroup))
VARIANT_BOOL BeginGroup;
__declspec(property(get=GetIsPriorityDropped))
VARIANT_BOOL IsPriorityDropped;
__declspec(property(get=GetBuiltIn))
VARIANT_BOOL BuiltIn;
__declspec(property(get=GetCaption,put=PutCaption))
_bstr_t Caption;
__declspec(property(get=GetControl))
IDispatchPtr Control;
__declspec(property(get=GetDescriptionText,put=PutDescriptionText))
_bstr_t DescriptionText;
__declspec(property(get=GetEnabled,put=PutEnabled))
VARIANT_BOOL Enabled;
__declspec(property(get=GetHeight,put=PutHeight))
int Height;
__declspec(property(get=GetHelpContextId,put=PutHelpContextId))
int HelpContextId;
__declspec(property(get=GetHelpFile,put=PutHelpFile))
_bstr_t HelpFile;
__declspec(property(get=GetId))
int Id;
__declspec(property(get=GetIndex))
int Index;
__declspec(property(get=GetInstanceId))
long InstanceId;
__declspec(property(get=GetLeft))
int Left;
__declspec(property(get=GetOLEUsage,put=PutOLEUsage))
enum MsoControlOLEUsage OLEUsage;
__declspec(property(get=GetOnAction,put=PutOnAction))
_bstr_t OnAction;
__declspec(property(get=GetParent))
CommandBarPtr Parent;
__declspec(property(get=GetParameter,put=PutParameter))
_bstr_t Parameter;
__declspec(property(get=GetPriority,put=PutPriority))
int Priority;
__declspec(property(get=GetTag,put=PutTag))
_bstr_t Tag;
__declspec(property(get=GetTooltipText,put=PutTooltipText))
_bstr_t TooltipText;
__declspec(property(get=GetTop))
int Top;
__declspec(property(get=GetType))
enum MsoControlType Type;
__declspec(property(get=GetVisible,put=PutVisible))
VARIANT_BOOL Visible;
__declspec(property(get=GetWidth,put=PutWidth))
int Width;
//
// Wrapper methods for error-handling
//
VARIANT_BOOL GetBeginGroup ( );
void PutBeginGroup (
VARIANT_BOOL pvarfBeginGroup );
VARIANT_BOOL GetBuiltIn ( );
_bstr_t GetCaption ( );
void PutCaption (
_bstr_t pbstrCaption );
IDispatchPtr GetControl ( );
CommandBarControlPtr Copy (
const _variant_t & Bar = vtMissing,
const _variant_t & Before = vtMissing );
HRESULT Delete (
const _variant_t & Temporary = vtMissing );
_bstr_t GetDescriptionText ( );
void PutDescriptionText (
_bstr_t pbstrText );
VARIANT_BOOL GetEnabled ( );
void PutEnabled (
VARIANT_BOOL pvarfEnabled );
HRESULT Execute ( );
int GetHeight ( );
void PutHeight (
int pdy );
int GetHelpContextId ( );
void PutHelpContextId (
int pid );
_bstr_t GetHelpFile ( );
void PutHelpFile (
_bstr_t pbstrFilename );
int GetId ( );
int GetIndex ( );
long GetInstanceId ( );
CommandBarControlPtr Move (
const _variant_t & Bar = vtMissing,
const _variant_t & Before = vtMissing );
int GetLeft ( );
enum MsoControlOLEUsage GetOLEUsage ( );
void PutOLEUsage (
enum MsoControlOLEUsage pcou );
_bstr_t GetOnAction ( );
void PutOnAction (
_bstr_t pbstrOnAction );
CommandBarPtr GetParent ( );
_bstr_t GetParameter ( );
void PutParameter (
_bstr_t pbstrParam );
int GetPriority ( );
void PutPriority (
int pnPri );
HRESULT Reset ( );
HRESULT SetFocus ( );
_bstr_t GetTag ( );
void PutTag (
_bstr_t pbstrTag );
_bstr_t GetTooltipText ( );
void PutTooltipText (
_bstr_t pbstrTooltip );
int GetTop ( );
enum MsoControlType GetType ( );
VARIANT_BOOL GetVisible ( );
void PutVisible (
VARIANT_BOOL pvarfVisible );
int GetWidth ( );
void PutWidth (
int pdx );
VARIANT_BOOL GetIsPriorityDropped ( );
HRESULT Reserved1 ( );
HRESULT Reserved2 ( );
HRESULT Reserved3 ( );
HRESULT Reserved4 ( );
HRESULT Reserved5 ( );
HRESULT Reserved6 ( );
HRESULT Reserved7 ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_BeginGroup (
VARIANT_BOOL * pvarfBeginGroup ) = 0;
virtual HRESULT __stdcall put_BeginGroup (
VARIANT_BOOL pvarfBeginGroup ) = 0;
virtual HRESULT __stdcall get_BuiltIn (
VARIANT_BOOL * pvarfBuiltIn ) = 0;
virtual HRESULT __stdcall get_Caption (
BSTR * pbstrCaption ) = 0;
virtual HRESULT __stdcall put_Caption (
BSTR pbstrCaption ) = 0;
virtual HRESULT __stdcall get_Control (
IDispatch * * ppidisp ) = 0;
virtual HRESULT __stdcall raw_Copy (
VARIANT Bar,
VARIANT Before,
struct CommandBarControl * * ppcbc ) = 0;
virtual HRESULT __stdcall raw_Delete (
VARIANT Temporary = vtMissing ) = 0;
virtual HRESULT __stdcall get_DescriptionText (
BSTR * pbstrText ) = 0;
virtual HRESULT __stdcall put_DescriptionText (
BSTR pbstrText ) = 0;
virtual HRESULT __stdcall get_Enabled (
VARIANT_BOOL * pvarfEnabled ) = 0;
virtual HRESULT __stdcall put_Enabled (
VARIANT_BOOL pvarfEnabled ) = 0;
virtual HRESULT __stdcall raw_Execute ( ) = 0;
virtual HRESULT __stdcall get_Height (
int * pdy ) = 0;
virtual HRESULT __stdcall put_Height (
int pdy ) = 0;
virtual HRESULT __stdcall get_HelpContextId (
int * pid ) = 0;
virtual HRESULT __stdcall put_HelpContextId (
int pid ) = 0;
virtual HRESULT __stdcall get_HelpFile (
BSTR * pbstrFilename ) = 0;
virtual HRESULT __stdcall put_HelpFile (
BSTR pbstrFilename ) = 0;
virtual HRESULT __stdcall get_Id (
int * pid ) = 0;
virtual HRESULT __stdcall get_Index (
int * pi ) = 0;
virtual HRESULT __stdcall get_InstanceId (
long * pid ) = 0;
virtual HRESULT __stdcall raw_Move (
VARIANT Bar,
VARIANT Before,
struct CommandBarControl * * ppcbc ) = 0;
virtual HRESULT __stdcall get_Left (
int * px ) = 0;
virtual HRESULT __stdcall get_OLEUsage (
enum MsoControlOLEUsage * pcou ) = 0;
virtual HRESULT __stdcall put_OLEUsage (
enum MsoControlOLEUsage pcou ) = 0;
virtual HRESULT __stdcall get_OnAction (
BSTR * pbstrOnAction ) = 0;
virtual HRESULT __stdcall put_OnAction (
BSTR pbstrOnAction ) = 0;
virtual HRESULT __stdcall get_Parent (
struct CommandBar * * ppcb ) = 0;
virtual HRESULT __stdcall get_Parameter (
BSTR * pbstrParam ) = 0;
virtual HRESULT __stdcall put_Parameter (
BSTR pbstrParam ) = 0;
virtual HRESULT __stdcall get_Priority (
int * pnPri ) = 0;
virtual HRESULT __stdcall put_Priority (
int pnPri ) = 0;
virtual HRESULT __stdcall raw_Reset ( ) = 0;
virtual HRESULT __stdcall raw_SetFocus ( ) = 0;
virtual HRESULT __stdc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -