CSplitterWnd::DoScroll

virtual BOOL DoScroll( CView* pViewFrom, UINT nScrollCode, 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.

nScrollCode

A scroll-bar code that indicates the user's scrolling request. This parameter is composed of two parts: a low-order byte, which determines the type of scrolling occurring horizontally, and a high-order byte, which determines the type of scrolling occurring 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 to perform synchronized scrolling of split windows when the view receives a scroll message.

Override to require an action by the user before synchronized scrolling is allowed.

CSplitterWnd OverviewClass MembersHierarchy Chart

See Also   CSplitterWnd::DoScrollBy, CView::OnScroll