MvcScrollWrapper_T Class

class MvcScrollWrapper_T: public MvcWrapper_T

The MvcScrollWrapper_T class "decorates" a visual part with horizontal and/or vertical scrollbars.

Defined in: MvcScrollWrapper.h

Class Template Arguments

base_t

The class of the visual part to derive from. Must be derived from MvcVisualPart

Class Members

void SetOptimizedRedraw(BOOL bOptimize=TRUE)

Set scroll viewport such that it will not erase on invalidate

BOOL GetOptimizedRedraw()

Get the scrollbar viewport optimize state.

BOOL SetScrollBarVisibility(BOOL bHorz=TRUE,BOOL bVert=TRUE)

Toggle visibility of scrollbars

ATLControls::CScrollBar* GetHScrollBar()

Get a pointer to the horizontal scrollbar

ATLControls::CScrollBar* GetVScrollBar()

Get a pointer to the vertical scrollbar

ATLControls::CScrollBar* GetSBScrollBar()

Get a pointer to the scrollbar sizebox

void SetLineUnitScroll(UINT nLinePixelScroll)

Set the unit change per scrollbar line scroll

UINT GetLineUnitScroll()

Get the unit change per scrollbar line scroll

virtual BOOL CreateScrollBars()

Allocate and create the scrollbar windows

virtual void SetScrollBarRanges()

(Re)Set the horizontal and vertical scrollbar ranges

virtual void SetScrollBarPageSizes()

(Re)Set the horizontal and vertical scrollbar page sizes

virtual void SetScrollBarPageSizes(CSize sizeLog)

(Re)Set the horizontal and vertical scrollbar page sizes

virtual BOOL HideScrollBarsWithFullPageSize()

Hide scrollbars with page size >= range size

virtual void ResetScrollBarRects(CPoint ptParentLogOrigin)

Reset the position of the scrollbars

void ResetScrollBarRects()

Reset the position of the scrollbars