Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Scrolls split windows by a given number of pixels.
virtual BOOL DoScrollBy(
   CView* pViewFrom,
   CSize sizeScroll,
   BOOL bDoScroll = TRUE 
);
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.
Return Value
Nonzero if synchronized scrolling occurs; otherwise 0.
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.
Requirements
Header: afxext.h