Поделиться через


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

Параметры

  • 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

См. также

Основные понятия

COleClientItem Class

COleClientItem Members

Hierarchy Chart

COleServerDoc::RequestPositionChange