Collapse the table of content
Expand the table of content



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);


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

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

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.


Header: afxole.h

© 2015 Microsoft