SECEditCtrlWrapper_T::OnScroll

template <class wnd_t, class vp_t>
BOOLSECEditCtrlWrapper_T<wnd_t, vp_t>::OnScroll(UINTnScrollCode, UINTnPos, BOOLbDoScroll)

Called to determine whether scrolling is possible.

Defined in: SECEditScrollBarWrapper_T.h

Return Value

If bDoScroll is TRUE and the view was actually scrolled, then return nonzero; otherwise 0. If bDoScroll is FALSE, then return the value that you would have returned if bDoScroll were TRUE, even though you don’t actually do the scrolling.

Parameters

nScrollCode

A scroll-bar code that indicates the user’s scrolling request.

nPos

Contains the current scroll-box position if the scroll-bar code is SB_THUMBTRACK; otherwise it is not used.

bDoScroll

Determines whether you should actually do the specified scrolling action. If TRUE, then scrolling should take place; if FALSE, then scrolling should not occur.

See Also

SECEditCtrlWrapper_T

OnVScroll  OnHScroll

Class Template Arguments

wnd_t

A CWnd-derived class.

vp_t

A SECEditViewport-derived class.