Share via


IWindowProvider::SetVisualState Method

Changes the visual state of the window. For example, minimizes or maximizes it.

Syntax

HRESULT SetVisualState(      
    WindowVisualState state
);

Parameters

  • state
    [in] A value from the WindowVisualState enumerated type that specifies the state of the window.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

UI Automation Providers Overview, IWindowProvider::WindowVisualState