Retrieves the control type of the element.
HRESULT IUIAutomationElement::get_CurrentControlType(CONTROLTYPEID *retVal);
- The address of a variable that receives the control type. For a list of control type IDs, see Control Type Identifiers.
Returns S_OK if successful, or an error value otherwise.
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.