COleClientItem::OnScrollBy

virtual BOOL OnScrollBy( CSize sizeExtent );

Return Value

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

Parameters

sizeExtent

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

Remarks

Called by the framework to scroll the OLE item in response to requests from the server. 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 OLE documentation.

COleClientItem OverviewClass MembersHierarchy Chart

See Also   COleClientItem::SetItemRects