Tuesday, 14 February 2017

SCROLLING VIEW

CScrollView Class:
Ø Derived from CView class.
Ø Handles standard scrolling.
Ø It Scrolls automatically in response of scrolling messages.
Ø It Scrolls automatically in response of messages from keyboard or IntelliMouse Wheel.
Ø It also handles window and viewport size as well as mapping mode.
SetScrollSizes():
Called when the view is about to be updated.
Syntax: void SetScrollSizes(intnMapMode, SIZE totalsize, SIZE pagesize, SIZE linesize)
nMapMode: Default value is MM_TEXT
totalsize: Total size of the scroll view.
Pagesize: The horizontal or vertical amount to scroll in each direction in response of mouse click in a scroll bar shaft.

Linesize:The horizontal or vertical amount to scroll in each direction in response of mouse click in a scroll arrow.

No comments:
Write comments