The framework calls COleClientItem::OnChangeItemPosition whenever the server requests a change in the position of the in-place activated object. This is one of several occasions for which you can implement smart repainting.
To send an update hint when the position of the CContainerItem object changes
CContainerItem::OnChangeItemPosition
and replace the following code:GetDocument()->UpdateAllViews(NULL);
m_rect = rectPos;
with this code:
InvalidateItem();
m_rect = rectPos;
InvalidateItem();