Call this function to see whether the OLE item is in-place active.
BOOL IsInPlaceActive( ) const;
Nonzero if the OLE item is in-place active; otherwise 0.
It is common to execute different logic depending on whether the item is being edited in place. The function checks whether the current item state is equal to either the activeState or the activeUIState.