Chapter 18: Progress-Based Controls Visual C++ and MFC Fundamentals
When a newly added scroll bar has been added to a parent window, it gets the position of
its lowest or Min value. To set a different initial value, use the Value field.
One of the ways the user explores a scroll bar is by clicking one of the arrow buttons.
This causes the middle thumb to move towards the arrow being clicked. By default, one
click corresponds to one unit, which could be one line of text. To control how much value
should be incremented when the user clicks one of the arrow buttons or presses the arrow
keys, change the value of the SmallChange property.
Another way the user can use a scroll bar is by clicking between an arrow button and the
thumb or by pressing either Page Up or Page Down. To control how many units should
be covered by this move, change the value of the LargeChange property.
18.5.3..Flat Scroll Bar Methods and Events.................................................
The Microsoft Scroll Bar Control is based on the CFlatSB class which itself is derived
from CWnd.
If the user clicks or holds one of the arrow buttons to scroll, the Flat Scroll Bar fires the
Scroll() event
When the user clicks or holds one of the buttons, the value of the scroll bar changes. The
value changes also if the user drags the thumb. This change of the Value property causes
the Flat Scroll Bar to fire the Change() event.