Share via


CSplitterWnd::DoScrollBy

virtual BOOL DoScrollBy( CView* pViewFrom**, CSize** sizeScroll**, BOOL** bDoScroll = TRUE );

Return Value

Nonzero if synchronized scrolling occurs; otherwise 0.

Parameters

pViewFrom

A pointer to the view from which the scrolling message originates.

sizeScroll

Number of pixels to be scrolled horizontally and vertically.

bDoScroll

* *Determines whether the specified scrolling action occurs. If bDoScroll is TRUE (that is, if a child window exists, and if the split windows have a scroll range), then the specified scrolling action can take place; if bDoScroll is FALSE (that is, if no child window exists, or the split views have no scroll range), then scrolling does not occur.

Remarks

This member function is called by the framework in response to a scroll message, to perform synchronized scrolling of the split windows by the amount, in pixels, indicated by sizeScroll. Positive values indicate scrolling down and to the right; negative values indicate scrolling up and to the left.

Override to require an action by the user before allowing scroll.

CSplitterWnd OverviewClass MembersHierarchy Chart

See Also   CSplitterWnd::DoScroll, CView::OnScroll