SECEditCtrlWrapper_T::OnVScroll

template <class wnd_t, class vp_t>
void SECEditCtrlWrapper_T<wnd_t, vp_t>::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)

Called when when the user clicks the window’s vertical scroll bar.

Defined in: SECEditScrollBarWrapper_T.h

Return Value

void

Parameters

nSBCode

A scroll-bar code that indicates the user’s scrolling request. This parameter can be one of the following:
SB_LEFT Scroll to far left.
SB_ENDSCROLL End scroll.
SB_LINELEFT Scroll left.
SB_LINERIGHT Scroll right.
SB_PAGELEFT Scroll one page left.
SB_PAGERIGHT Scroll one page right.
SB_RIGHT Scroll to far right.
SB_THUMBPOSITION Scroll to absolute position. The current position is specified by the nPos parameter.
SB_THUMBTRACK Drag scroll box to specified position. The current position is specified by the nPos parameter.

nPos

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

pScrollBar

If the scroll message came from a scroll-bar control, contains a pointer to the control. If the user clicked a window’s scroll bar, this parameter is NULL. The pointer may be temporary and should not be stored for later use.

See Also

SECEditCtrlWrapper_T OnHScroll

Class Template Arguments

wnd_t

A CWnd-derived class.

vp_t

A SECEditViewport-derived class.