📄 mso.tlh
字号:
IDispatchPtr Application;
__declspec(property(get=GetCreator))
long Creator;
//
// Wrapper methods for error-handling
//
IDispatchPtr GetApplication ( );
long GetCreator ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Application (
IDispatch * * ppidisp ) = 0;
virtual HRESULT __stdcall get_Creator (
long * plCreator ) = 0;
};
struct __declspec(uuid("000c0301-0000-0000-c000-000000000046"))
_IMsoOleAccDispObj : IAccessible
{
//
// Property data
//
__declspec(property(get=GetApplication))
IDispatchPtr Application;
__declspec(property(get=GetCreator))
long Creator;
//
// Wrapper methods for error-handling
//
IDispatchPtr GetApplication ( );
long GetCreator ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Application (
IDispatch * * ppidisp ) = 0;
virtual HRESULT __stdcall get_Creator (
long * plCreator ) = 0;
};
struct __declspec(uuid("000c0302-0000-0000-c000-000000000046"))
_CommandBars : _IMsoDispObj
{
//
// Property data
//
__declspec(property(get=GetActionControl))
CommandBarControlPtr ActionControl;
__declspec(property(get=GetActiveMenuBar))
CommandBarPtr ActiveMenuBar;
__declspec(property(get=GetItem))
CommandBarPtr Item[];
__declspec(property(get=GetCount))
int Count;
__declspec(property(get=GetDisplayTooltips,put=PutDisplayTooltips))
VARIANT_BOOL DisplayTooltips;
__declspec(property(get=GetDisplayKeysInTooltips,put=PutDisplayKeysInTooltips))
VARIANT_BOOL DisplayKeysInTooltips;
__declspec(property(get=GetLargeButtons,put=PutLargeButtons))
VARIANT_BOOL LargeButtons;
__declspec(property(get=GetMenuAnimationStyle,put=PutMenuAnimationStyle))
enum MsoMenuAnimation MenuAnimationStyle;
__declspec(property(get=GetParent))
IDispatchPtr Parent;
__declspec(property(get=GetAdaptiveMenus,put=PutAdaptiveMenus))
VARIANT_BOOL AdaptiveMenus;
__declspec(property(get=GetDisplayFonts,put=PutDisplayFonts))
VARIANT_BOOL DisplayFonts;
__declspec(property(get=GetDisableCustomize,put=PutDisableCustomize))
VARIANT_BOOL DisableCustomize;
__declspec(property(get=GetDisableAskAQuestionDropdown,put=PutDisableAskAQuestionDropdown))
VARIANT_BOOL DisableAskAQuestionDropdown;
__declspec(property(get=Get_NewEnum))
IUnknownPtr _NewEnum;
//
// Wrapper methods for error-handling
//
CommandBarControlPtr GetActionControl ( );
CommandBarPtr GetActiveMenuBar ( );
CommandBarPtr Add (
const _variant_t & Name = vtMissing,
const _variant_t & Position = vtMissing,
const _variant_t & MenuBar = vtMissing,
const _variant_t & Temporary = vtMissing );
int GetCount ( );
VARIANT_BOOL GetDisplayTooltips ( );
void PutDisplayTooltips (
VARIANT_BOOL pvarfDisplayTooltips );
VARIANT_BOOL GetDisplayKeysInTooltips ( );
void PutDisplayKeysInTooltips (
VARIANT_BOOL pvarfDisplayKeys );
CommandBarControlPtr FindControl (
const _variant_t & Type = vtMissing,
const _variant_t & Id = vtMissing,
const _variant_t & Tag = vtMissing,
const _variant_t & Visible = vtMissing );
CommandBarPtr GetItem (
const _variant_t & Index );
VARIANT_BOOL GetLargeButtons ( );
void PutLargeButtons (
VARIANT_BOOL pvarfLargeButtons );
enum MsoMenuAnimation GetMenuAnimationStyle ( );
void PutMenuAnimationStyle (
enum MsoMenuAnimation pma );
IUnknownPtr Get_NewEnum ( );
IDispatchPtr GetParent ( );
HRESULT ReleaseFocus ( );
int GetIdsString (
int ids,
BSTR * pbstrName );
int GetTmcGetName (
int tmc,
BSTR * pbstrName );
VARIANT_BOOL GetAdaptiveMenus ( );
void PutAdaptiveMenus (
VARIANT_BOOL pvarfAdaptiveMenus );
CommandBarControlsPtr FindControls (
const _variant_t & Type = vtMissing,
const _variant_t & Id = vtMissing,
const _variant_t & Tag = vtMissing,
const _variant_t & Visible = vtMissing );
CommandBarPtr AddEx (
const _variant_t & TbidOrName = vtMissing,
const _variant_t & Position = vtMissing,
const _variant_t & MenuBar = vtMissing,
const _variant_t & Temporary = vtMissing,
const _variant_t & TbtrProtection = vtMissing );
VARIANT_BOOL GetDisplayFonts ( );
void PutDisplayFonts (
VARIANT_BOOL pvarfDisplayFonts );
VARIANT_BOOL GetDisableCustomize ( );
void PutDisableCustomize (
VARIANT_BOOL pvarfDisableCustomize );
VARIANT_BOOL GetDisableAskAQuestionDropdown ( );
void PutDisableAskAQuestionDropdown (
VARIANT_BOOL pvarfDisableAskAQuestionDropdown );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_ActionControl (
struct CommandBarControl * * ppcbc ) = 0;
virtual HRESULT __stdcall get_ActiveMenuBar (
struct CommandBar * * ppcb ) = 0;
virtual HRESULT __stdcall raw_Add (
VARIANT Name,
VARIANT Position,
VARIANT MenuBar,
VARIANT Temporary,
struct CommandBar * * ppcb ) = 0;
virtual HRESULT __stdcall get_Count (
int * pcToolbars ) = 0;
virtual HRESULT __stdcall get_DisplayTooltips (
VARIANT_BOOL * pvarfDisplayTooltips ) = 0;
virtual HRESULT __stdcall put_DisplayTooltips (
VARIANT_BOOL pvarfDisplayTooltips ) = 0;
virtual HRESULT __stdcall get_DisplayKeysInTooltips (
VARIANT_BOOL * pvarfDisplayKeys ) = 0;
virtual HRESULT __stdcall put_DisplayKeysInTooltips (
VARIANT_BOOL pvarfDisplayKeys ) = 0;
virtual HRESULT __stdcall raw_FindControl (
VARIANT Type,
VARIANT Id,
VARIANT Tag,
VARIANT Visible,
struct CommandBarControl * * ppcbc ) = 0;
virtual HRESULT __stdcall get_Item (
VARIANT Index,
struct CommandBar * * ppcb ) = 0;
virtual HRESULT __stdcall get_LargeButtons (
VARIANT_BOOL * pvarfLargeButtons ) = 0;
virtual HRESULT __stdcall put_LargeButtons (
VARIANT_BOOL pvarfLargeButtons ) = 0;
virtual HRESULT __stdcall get_MenuAnimationStyle (
enum MsoMenuAnimation * pma ) = 0;
virtual HRESULT __stdcall put_MenuAnimationStyle (
enum MsoMenuAnimation pma ) = 0;
virtual HRESULT __stdcall get__NewEnum (
IUnknown * * ppienum ) = 0;
virtual HRESULT __stdcall get_Parent (
IDispatch * * ppidisp ) = 0;
virtual HRESULT __stdcall raw_ReleaseFocus ( ) = 0;
virtual HRESULT __stdcall get_IdsString (
int ids,
BSTR * pbstrName,
int * pcch ) = 0;
virtual HRESULT __stdcall get_TmcGetName (
int tmc,
BSTR * pbstrName,
int * pcch ) = 0;
virtual HRESULT __stdcall get_AdaptiveMenus (
VARIANT_BOOL * pvarfAdaptiveMenus ) = 0;
virtual HRESULT __stdcall put_AdaptiveMenus (
VARIANT_BOOL pvarfAdaptiveMenus ) = 0;
virtual HRESULT __stdcall raw_FindControls (
VARIANT Type,
VARIANT Id,
VARIANT Tag,
VARIANT Visible,
struct CommandBarControls * * ppcbcs ) = 0;
virtual HRESULT __stdcall raw_AddEx (
VARIANT TbidOrName,
VARIANT Position,
VARIANT MenuBar,
VARIANT Temporary,
VARIANT TbtrProtection,
struct CommandBar * * ppcb ) = 0;
virtual HRESULT __stdcall get_DisplayFonts (
VARIANT_BOOL * pvarfDisplayFonts ) = 0;
virtual HRESULT __stdcall put_DisplayFonts (
VARIANT_BOOL pvarfDisplayFonts ) = 0;
virtual HRESULT __stdcall get_DisableCustomize (
VARIANT_BOOL * pvarfDisableCustomize ) = 0;
virtual HRESULT __stdcall put_DisableCustomize (
VARIANT_BOOL pvarfDisableCustomize ) = 0;
virtual HRESULT __stdcall get_DisableAskAQuestionDropdown (
VARIANT_BOOL * pvarfDisableAskAQuestionDropdown ) = 0;
virtual HRESULT __stdcall put_DisableAskAQuestionDropdown (
VARIANT_BOOL pvarfDisableAskAQuestionDropdown ) = 0;
};
struct __declspec(uuid("000c0304-0000-0000-c000-000000000046"))
CommandBar : _IMsoOleAccDispObj
{
//
// Property data
//
__declspec(property(get=GetBuiltIn))
VARIANT_BOOL BuiltIn;
__declspec(property(get=GetContext,put=PutContext))
_bstr_t Context;
__declspec(property(get=GetWidth,put=PutWidth))
int Width;
__declspec(property(get=GetControls))
CommandBarControlsPtr Controls;
__declspec(property(get=GetAdaptiveMenu,put=PutAdaptiveMenu))
VARIANT_BOOL AdaptiveMenu;
__declspec(property(get=GetEnabled,put=PutEnabled))
VARIANT_BOOL Enabled;
__declspec(property(get=GetId))
int Id;
__declspec(property(get=GetHeight,put=PutHeight))
int Height;
__declspec(property(get=GetIndex))
int Index;
__declspec(property(get=GetInstanceId))
long InstanceId;
__declspec(property(get=GetLeft,put=PutLeft))
int Left;
__declspec(property(get=GetName,put=PutName))
_bstr_t Name;
__declspec(property(get=GetNameLocal,put=PutNameLocal))
_bstr_t NameLocal;
__declspec(property(get=GetParent))
IDispatchPtr Parent;
__declspec(property(get=GetPosition,put=PutPosition))
enum MsoBarPosition Position;
__declspec(property(get=GetRowIndex,put=PutRowIndex))
int RowIndex;
__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 );
int GetId ( );
//
// 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -