The slider control

This control allows you to input analog values in an easy to understand fashion. Here is a screen shot of different sliders with different attributes.

:

 

  Sliders can be drawn in vertical or horizontal position, with rounded or not pointers, with ticks above or below, etc.

 To control the different options you use the following properties dialog box.

The slider interfaces with the dialog box that contains it only with the WM_HSCROLL or the WM_VSCROLL message. Weditres will add code to handle those messages and call your callback procedure when the slider wants to say to you something.

 You can add a range of values, and Weditres will generate code to set that range of values at run time during the initialization of the dialog box.

The other styles shown are the usual ones already explained in all the other controls (visible, tab stop, etc). They will not be repeated here.