Share via


IOleInPlaceSite::OnPosRectChange (Compact 2013)

3/26/2014

Indicates the object's extents have changed.

Syntax

HRESULT OnPosRectChange( 
  LPCRECT lprcPosRect  
);

Parameters

  • lprcPosRect
    [in] Pointer to the rectangle containing the position of the in-place object in the client coordinates of its parent window.

Return Value

This method supports the following return values:

Value

Description

S_OK

The method completed successfully.

E_INVALIDARG

The call to the method contains an invalid argument.

E_UNEXPECTED

The call to the method unexpectedly failed.

Notes to Callers

The IOleInPlaceSite::OnPosRectChange method is called by the in-place object.

Notes to Implementers

When the in-place object calls IOleInPlaceSite::OnPosRectChange, the container must call IOleInPlaceObject::SetObjectRects to specify the new position of the in-place window and the ClipRect. Only then does the object resize its window.

In most cases, the object grows to the right and/or down. There could be cases where the object grows to the left and/or up, as conveyed through lprcPosRect. It is also possible to change the object's position without changing its size.

Requirements

Header

Oleidl.h

See Also

Reference

IOleInPlaceSite