WindowPattern_SetVisualState Function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation COM interfaces instead.

Sets the visual state of a window; for example, to maximize a window.

Syntax

HRESULT WindowPattern_SetVisualState(      
    HUIAPATTERNOBJECT hobj,
    WindowVisualState state
);

Parameters

  • hobj
    [in] The control pattern object.
  • state
    [in] The visual state to set the window to.

Return Value

Returns S_OK if successful or an error value otherwise.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP