DERIVED CLASS FOR TRACKBAR CONTROLS. More...
#include <Zclass.h>
Public Member Functions | |
| void | Buddy (HWND hwndBuddy, bool fLocation=false) |
| int | Position (void) |
| void | Position (int lPosition, bool bRefresh=true) |
Public Attributes | |
| RANGEINFO | range |
DERIVED CLASS FOR TRACKBAR CONTROLS.
% Provides the functionality of the Windows common trackbar control. A trackbar is a window that contains a slider and optional tick marks. When the user moves the slider, using either the mouse or the direction keys, the trackbar sends notification messages to indicate the change. Trackbars 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 trackbar to allow the user to set the repeat rate of the keyboard by moving the slider to a given tick mark.
| void zTrackBar::Buddy | ( | HWND | hwndBuddy, | |
| bool | fLocation = false | |||
| ) | [inline] |
Assigns a window as the buddy window. Trackbar buddy windows are automatically displayed in a location relative to the control's orientation (horizontal or vertical).
| hwndBuddy | - Handle to the window that will be set as the trackbar control's buddy. | |
| fLocation | - Value specifying the location at which to display the buddy window. This value can be one of the following:
|
| void zTrackBar::Position | ( | int | lPosition, | |
| bool | bRefresh = true | |||
| ) | [inline] |
Sets the current logical position of the slider in a trackbar.
| lPosition | - New logical position of the slider. Valid logical positions are the integer values in the trackbar's range of minimum to maximum slider positions. If this value is outside the control's maximum and minimum range, the position is set to the maximum or minimum value. | |
| bRefresh | - Redraw flag. If this parameter is true, the message redraws the control with the slider at the position given by lPosition. If this parameter is false, the message does not redraw the slider at the new position. Note that the message sets the value of the slider position regardless of the bRefresh parameter. |
| int zTrackBar::Position | ( | void | ) | [inline] |
Retrieves the current logical position of the slider in a trackbar. The logical positions are the integer values in the trackbar's range of minimum to maximum slider positions.
| RANGEINFO zTrackBar::range |
Contains range information.
1.6.1