IUIAutomationElement::CurrentControlType Property
Retrieves the control type of the element.
Syntax
HRESULT IUIAutomationElement::get_CurrentControlType(CONTROLTYPEID *retVal);
Parameters
- retVal
The address of a variable that receives the control type. For a list of control type IDs, see Control Type Identifiers.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Control types describe a known interaction model for UI Automation elements without relying on a localized control type or combination of complex logic rules. This property cannot change at run time unless the control supports the IUIAutomationMultipleViewPattern interface. An example is the Win32 ListView control, which can change from a data grid to a list, depending on the current view.
See Also
UIA_ControlTypePropertyId, IUIAutomationElement, IUIAutomationElement::CachedControlType