Share via


IOleInPlaceSite::OnPosRectChange

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IOleInPlaceSite