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. 這種方法可為伺服器開發人員省下完整執行所有 @no__t 0 屬性和方法的工作。This approach saves server developers the work of fully implementing all the IAccessible properties and methods. 此函式類似于 CreateStdAccessibleProxy,不同之處在于 CreateStdAccessibleProxy 可讓您將類別名稱指定為參數,而 CreateStdAccessibleObject 則使用與 hwnd 相關聯的類別名稱。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

Int,定義 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. 這種方法可為伺服器開發人員省下完整執行所有 @no__t 0 屬性和方法的工作。This approach saves server developers the work of fully implementing all the IAccessible properties and methods.

有效的 objid 值。Valid objid values.

ObjectObject 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 參考音效物件。Refers to a sound object. 音效物件沒有螢幕位置或子系,但的確有 name 和 state 屬性。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.

適用於