Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.83 KB

using-csliderctrl.md

File metadata and controls

38 lines (29 loc) · 1.83 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Using CSliderCtrl | Microsoft Docs
11/04/2016
cpp-windows
article
CSliderCtrl
C++
CSliderCtrl class [MFC], using
slider controls [MFC], using
242c7bcd-126e-4b9b-8f76-8082ad06fe73
10
mikeblome
mblome
ghogen

Using CSliderCtrl

The CSliderCtrl class represents a slider control, which is also called a trackbar. A "slider control" is a window that contains a slider and optional tick marks. When the user moves the slider, using either the mouse or the arrow keys, the slider control sends notification messages to indicate the change.

Slider controls are useful when you want the user to select a discrete value or a set of consecutive values in a range. For example, you might use a slider control to allow the user to set the repeat rate of the keyboard by moving the slider to a given tick mark.

The slider in a slider control moves in increments that you specify when you create it. For example, if you specify that the slider control should have a range of five, the slider can only occupy six positions: a position at the left side of the slider control and one position for each increment in the range. Typically, each of these positions is identified by a tick mark.

What do you want to know more about

See Also

Controls