Using Sliders
The Slider Control is a window that contains a slider and optional tick marks. Your application sets or gets the range of the Slider control's values, using
DLG_RANGEMIN
and DLG_RANGEMAX
, and the current value, using DLG_POSITION
. Your application can also set:- The number of logical positions the slider moves in response to keyboard input from the arrow keys usingDLG_SMALLSTEP.
- The number of logical positions the slider moves in response to keyboard input, such as the PAGE UP or PAGE DOWN keys, or mouse input, such as clicks in the slider's channel, usingDLG_BIGSTEP.
- The interval frequency for tick marks on the slider usingDLG_TICKFREQ.
The Slider Control calls the
DLG_CHANGE
callback whenever the user changes the current value of the control.The Slider control is named the "Trackbar" control in Windows programming documentation.