Share via


CView::OnScrollBy

BOOLCView::OnScrollBy(CSizesizeScroll**,BOOLbDoScroll=TRUE);**

Return Value

Nonzero if the view was able to be scrolled; otherwise 0.

Parameters

sizeScroll

Number of pixels scrolled horizontally and vertically.

bDoScroll

Determines whether scrolling of the view occurs. If TRUE, then scrolling takes place; if FALSE, then scrolling does not occur.

Remarks

Called by the framework when the user views an area beyond the present view of the document, either by dragging an OLE item against the view’s current borders or by manipulating the vertical or horizontal scrollbars. The default implementation does nothing. In derived classes the function checks to see whether the view is scrollable in the direction the user requested and then updates the new region if necessary. This function is automatically called by CWnd::OnHScroll and CWnd::OnVScroll to perform the actual scrolling request.

CView OverviewClass MembersHierarchy Chart