次の方法で共有


IOleInPlaceSite::OnPosRectChange (Windows CE 5.0)

Send Feedback

Indicates the object's extents have changed.

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 Values

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

OS Versions: Windows CE 4.0 and later.
Header: oleidl.h.

See Also

IOleInPlaceSite

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.