Using Trackbar Controls

This section provides implementation details and examples for Trackbar controls.

In this section

Topic Description
How to Create a Trackbar
When the trackbar is created, both its range and its selection range are initialized. The page size is also set at this time.
How to Process Trackbar Notification Messages
Trackbars notify their parent window of user actions by sending the parent a WM_HSCROLL or WM_VSCROLL message.
How to Limit Slider Movement
As described in About Trackbar Controls, it is possible to set off part of the trackbar range as a selection range. One purpose of a selection range might be to limit movement of the slider, making some parts of the full range off limits.
How to Use Buddy Windows
By setting other controls as buddy windows for a trackbar, you can automatically position those controls at the ends of the trackbar as labels.