Freigeben über


COleClientItem::OnChangeItemPosition

Called by the framework to notify the container that the OLE item's extent has changed during in-place activation.

virtual BOOL OnChangeItemPosition(
   const CRect& rectPos 
);

Parameters

  • rectPos
    Indicates the item's position relative to the container application's client area.

Return Value

Nonzero if the item's position is successfully changed; otherwise 0.

Remarks

The default implementation determines the new visible rectangle of the OLE item and calls SetItemRects with the new values. The default implementation calculates the visible rectangle for the item and passes that information to the server.

Override this function to apply special rules to the resize/move operation. If the application is written in MFC, this call results because the server called COleServerDoc::RequestPositionChange.

Requirements

Header: afxole.h

See Also

Concepts

COleClientItem Class

COleClientItem Members

Hierarchy Chart

COleServerDoc::RequestPositionChange