Share via


ITransformProvider::Resize Method

Resizes the control.

Syntax

HRESULT Resize(      
    double width,
    double height
);

Parameters

  • width
    [in] The new width of the window in pixels.
  • height
    [in] The new height of the window in pixels.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

When called on a control supporting split panes, this method might have the side effect of resizing other contiguous panes.

An object cannot be moved, resized, or rotated such that its resulting screen location would be completely outside the coordinates of its container and inaccessible to keyboard or mouse. For example, a top-level window moved completely off-screen or a child object moved outside the boundaries of the container's viewport. In these cases the object is placed as close to the requested screen coordinates as possible with the top or left coordinates overridden to be within the container boundaries.

See Also

UI Automation Providers Overview