|
IOleInPlaceSite::OnPosRectChange
Indicates the object's extents have changed.
HRESULT OnPosRectChange(
LPCRECT lprcPosRect
| //Points to rectangle containing the position of in-place object
| );
|
|
Parameter
lprcPosRect
[in] Points to the rectangle containing the position of the in-place object in
the client coordinates of its parent window.
Return Values
S_OK
The method completed successfully.
E_INVALIDARG
One or more arguments are invalid.
E_UNEXPECTED
An unexpected error occurred.
Comments
Notes to Callers
The IOleInPlaceSite::OnPosRectChange method is called by the in-place object.
Notes to Implementors
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.
See Also
IOleInPlaceObject::SetObjectRects
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|