共用方式為


COleClientItem::OnShowItem

Called by the framework to display the OLE item, making it totally visible during editing.

virtual void OnShowItem( );

Remarks

It is used when your container application supports links to embedded items (that is, if you have derived your document class from COleLinkingDoc). This function is called during in-place activation or when the OLE item is a link source and the user wants to edit it. The default implementation activates the first view on the container document. Override this function to scroll the document so that the OLE item is visible.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleLinkingDoc Class