Freigeben über


COleClientItem::OnScrollBy

Called by the framework to scroll the OLE item in response to requests from the server.

virtual BOOL OnScrollBy(
   CSize sizeExtent 
);

Parameters

  • sizeExtent
    Specifies the distances, in pixels, to scroll in the x and y directions.

Return Value

Nonzero if the item was scrolled; 0 if the item could not be scrolled.

Remarks

For example, if the OLE item is partially visible and the user moves outside the visible region while performing in-place editing, this function is called to keep the cursor visible. The default implementation does nothing. Override this function to scroll the item by the specified amount. Note that as a result of scrolling, the visible portion of the OLE item can change. Call SetItemRects to update the item's visible rectangle.

For more information, see IOleInPlaceSite::Scroll in the Windows SDK.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::SetItemRects

Other Resources

COleClientItem Members