次の方法で共有


IOleInPlaceSite::OnPosRectChange (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

IOleInPlaceSite