Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 17: Track-Based Controls



  1. Close it and return to MSVC


17.3 Slider Controls.............................................................................................


17.3.1..Overview...............................................................................................


A slider is a Windows control equipped with a small bar, also called a thumb, which
slides along a visible line. There are two types of sliders: horizontal and vertical:

To use the slider control, the user can drag the thumb in one of two directions. If the
slider is horizontal, the user can drag the thumb left or right. The thumb of a vertical
slider can be dragged up or down. This changes the position of the thumb. The user can
also click the desired position along the line to place the thumb at the desired location.
Alternatively, when the slider has focus, the user can also use the arrow keys of the
keyboard to move the thumb.

A slider is configured with a set of values from a minimum to a maximum. Therefore, the
user can make a selection included in that range. Optionally, a slider can be equipped
with small indicators called ticks:
Free download pdf