Share via


IMultipleViewProvider::SetCurrentView Method

Sets the current control-specific view.

Syntax

HRESULT SetCurrentView(      
    int viewId
);

Parameters

  • viewId
    [in] A view identifier.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

View identifiers can be retrieved by using IMultipleViewProvider::GetSupportedViews.

The collection of control-specific view identifiers must be identical across instances.

See Also

UI Automation Providers Overview