AccessibleObject.UseStdAccessibleObjects 方法

定义

将对象与 AccessibleObject 的一个实例关联起来。Associates an object with an instance of an AccessibleObject.

重载

UseStdAccessibleObjects(IntPtr)

根据对象的句柄,将一个对象与 AccessibleObject 的一个实例关联起来。Associates an object with an instance of an AccessibleObject based on the handle of the object.

UseStdAccessibleObjects(IntPtr, Int32)

根据对象的句柄和对象 ID,将一个对象与 AccessibleObject 的一个实例关联起来。Associates an object with an instance of an AccessibleObject based on the handle and the object id of the object.

UseStdAccessibleObjects(IntPtr)

根据对象的句柄,将一个对象与 AccessibleObject 的一个实例关联起来。Associates an object with an instance of an AccessibleObject based on the handle of the object.

protected:
 void UseStdAccessibleObjects(IntPtr handle);
protected void UseStdAccessibleObjects (IntPtr handle);
member this.UseStdAccessibleObjects : nativeint -> unit
Protected Sub UseStdAccessibleObjects (handle As IntPtr)

参数

handle
IntPtr

IntPtr,它包含对象的句柄。An IntPtr that contains the handle of the object.

注解

服务器应用程序在包含类似于系统提供的对象的自定义 UI 对象时,可以调用此函数。Server applications can call this function when they contain a custom UI object that is similar to a system-provided object. 服务器应用程序调用 CreateStdAccessibleObject,并根据需要重写 @no__t 1 方法和属性以匹配其自定义对象。Server applications call CreateStdAccessibleObject and override the IAccessible methods and properties as needed to match their custom object. 此方法可将服务器开发人员保存为完全实现所有 IAccessible 属性和方法的工作。This approach saves server developers the work of fully implementing all the IAccessible properties and methods. 此函数与 CreateStdAccessibleProxy 相似,不同之处在于,CreateStdAccessibleProxy 允许你将类名称指定为参数,而 CreateStdAccessibleObject 则使用与 @no__t 3 关联的类名称。This function is similar to CreateStdAccessibleProxy, except that CreateStdAccessibleProxy enables you to specify the class name as a parameter, whereas CreateStdAccessibleObject uses the class name associated with the hwnd.

调用此版本 UseStdAccessible 与使用客户端的 objid 调用两个参数版本相同。Calling this version of the UseStdAccessible is the same as calling the two parameter version with an objid of CLIENT.

UseStdAccessibleObjects(IntPtr, Int32)

根据对象的句柄和对象 ID,将一个对象与 AccessibleObject 的一个实例关联起来。Associates an object with an instance of an AccessibleObject based on the handle and the object id of the object.

protected:
 void UseStdAccessibleObjects(IntPtr handle, int objid);
protected void UseStdAccessibleObjects (IntPtr handle, int objid);
member this.UseStdAccessibleObjects : nativeint * int -> unit
Protected Sub UseStdAccessibleObjects (handle As IntPtr, objid As Integer)

参数

handle
IntPtr

IntPtr,它包含对象的句柄。An IntPtr that contains the handle of the object.

objid
Int32

一个整数,它定义 handle 参数引用的对象的类型。An Int that defines the type of object that the handle parameter refers to.

注解

使用系统提供的用户界面元素的指定类型的方法和属性创建一个辅助性对象。Creates an accessible object with the methods and properties for the specified type of system-provided user interface element.

服务器应用程序在包含类似于系统提供的对象的自定义 UI 对象时,可以调用此函数。Server applications can call this function when they contain a custom UI object that is similar to a system-provided object. 服务器应用程序调用 CreateStdAccessibleObject,并根据需要重写 @no__t 1 方法和属性以匹配其自定义对象。Server applications call CreateStdAccessibleObject and override the IAccessible methods and properties as needed to match their custom object. 此方法可将服务器开发人员保存为完全实现所有 IAccessible 属性和方法的工作。This approach saves server developers the work of fully implementing all the IAccessible properties and methods.

有效 objid 值。Valid objid values.

对象Object Value 说明Description
警报ALERT 0xFFFFFFF60xFFFFFFF6 引用与窗口或应用程序关联的消息。Refers to a message associated with a window or application.
CARET 0xFFFFFFF80xFFFFFFF8 引用窗口中的文本插入栏(插入符号)。Refers to the text insertion bar (caret) in the window.
客户端CLIENT 0xFFFFFFFC0xFFFFFFFC 引用窗口的工作区。Refers to the window's client area. 在大多数情况下,操作系统会控制框架元素,而客户端对象则包含应用程序控制的所有元素。In most cases, the operating system controls the frame elements, and the client object contains all elements that the application controls.
游标CURSOR 0xFFFFFFF70xFFFFFFF7 指鼠标指针。Refers to the mouse pointer. 系统中只有一个鼠标指针,并且它不是窗口的子级。There is only one mouse pointer in the system and it is not a child of a window.
HSCROLLHSCROLL 0xFFFFFFFA0xFFFFFFFA 引用窗口的水平滚动条。Refers to the window's horizontal scroll bar.
MENUMENU 0xFFFFFFFD0xFFFFFFFD 引用窗口的菜单栏。Refers to the window's menu bar.
SIZEGRIPSIZEGRIP 0xFFFFFFF90xFFFFFFF9 指窗口的大小手柄,它是位于窗口框架右下角的一个可选框架组件。Refers to the window's size grip, an optional frame component located at the lower right corner of the window frame.
SOUND 0xFFFFFFF50xFFFFFFF5 引用 sound 对象。Refers to a sound object. Sound 对象没有屏幕位置或子对象,但具有名称和状态属性。Sound objects do not have screen locations or children, but do have name and state attributes. 它们是播放声音的应用程序的子项。They are children of the application playing the sound.
SYSMENUSYSMENU 0xFFFFFFFF0xFFFFFFFF 引用窗口的系统菜单。Refers to the window's system menu.
标题栏TITLEBAR 0xFFFFFFFE0xFFFFFFFE 引用窗口的标题栏。Refers to the window's title bar.
VSCROLLVSCROLL 0xFFFFFFFB0xFFFFFFFB 引用窗口的垂直滚动条。Refers to the window's vertical scroll bar.
窗口WINDOW 0x000000000x00000000 指的是窗口本身而不是子对象。Refers to the window itself rather than to a child object.

适用于