Bearbeiten

Freigeben über


AccessibleObject.UseStdAccessibleObjects Method

Definition

Associates an object with an instance of an AccessibleObject.

Overloads

UseStdAccessibleObjects(IntPtr)

Associates an object with an instance of an AccessibleObject based on the handle of the object.

UseStdAccessibleObjects(IntPtr, Int32)

Associates an object with an instance of an AccessibleObject based on the handle and the object id of the object.

UseStdAccessibleObjects(IntPtr)

Source:
AccessibleObject.cs
Source:
AccessibleObject.cs
Source:
AccessibleObject.cs

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)

Parameters

handle
IntPtr

nativeint

An IntPtr that contains the handle of the object.

Remarks

Server applications can call this function when they contain a custom UI object that is similar to a system-provided object. Server applications call CreateStdAccessibleObject and override the IAccessible methods and properties as needed to match their custom object. This approach saves server developers the work of fully implementing all the IAccessible properties and methods. 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.

Calling this version of the UseStdAccessible is the same as calling the two parameter version with an objid of CLIENT.

Applies to

UseStdAccessibleObjects(IntPtr, Int32)

Source:
AccessibleObject.cs
Source:
AccessibleObject.cs
Source:
AccessibleObject.cs

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)

Parameters

handle
IntPtr

nativeint

An IntPtr that contains the handle of the object.

objid
Int32

An Int that defines the type of object that the handle parameter refers to.

Remarks

Creates an accessible object with the methods and properties for the specified type of system-provided user interface element.

Server applications can call this function when they contain a custom UI object that is similar to a system-provided object. Server applications call CreateStdAccessibleObject and override the IAccessible methods and properties as needed to match their custom object. This approach saves server developers the work of fully implementing all the IAccessible properties and methods.

Valid objid values.

Object Value Description
ALERT 0xFFFFFFF6 Refers to a message associated with a window or application.
CARET 0xFFFFFFF8 Refers to the text insertion bar (caret) in the window.
CLIENT 0xFFFFFFFC 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 0xFFFFFFF7 Refers to the mouse pointer. There is only one mouse pointer in the system and it is not a child of a window.
HSCROLL 0xFFFFFFFA Refers to the window's horizontal scroll bar.
MENU 0xFFFFFFFD Refers to the window's menu bar.
SIZEGRIP 0xFFFFFFF9 Refers to the window's size grip, an optional frame component located at the lower right corner of the window frame.
SOUND 0xFFFFFFF5 Refers to a sound object. 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.
SYSMENU 0xFFFFFFFF Refers to the window's system menu.
TITLEBAR 0xFFFFFFFE Refers to the window's title bar.
VSCROLL 0xFFFFFFFB Refers to the window's vertical scroll bar.
WINDOW 0x00000000 Refers to the window itself rather than to a child object.

Applies to