zTrackBar Class Reference

DERIVED CLASS FOR TRACKBAR CONTROLS. More...

#include <Zclass.h>

Inheritance diagram for zTrackBar:
zWindow

List of all members.

Public Member Functions

void Buddy (HWND hwndBuddy, bool fLocation=false)
int Position (void)
void Position (int lPosition, bool bRefresh=true)

Public Attributes

RANGEINFO range

Detailed Description

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.


Member Function Documentation

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).

Parameters:
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:

  • true - The buddy will appear to the left of the trackbar if the trackbar control is horizontal. If the trackbar is vertical, the buddy appears above the trackbar control.
  • false - The buddy will appear to the right of the trackbar if the trackbar control is horizontal. If the trackbar is vertical, the buddy appears below the trackbar control.
void zTrackBar::Position ( int  lPosition,
bool  bRefresh = true 
) [inline]

Sets the current logical position of the slider in a trackbar.

Parameters:
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.


Member Data Documentation

RANGEINFO zTrackBar::range

Contains range information.


The documentation for this class was generated from the following file:

Generated on Sun Nov 29 07:22:17 2009 for Rad.on++ by  doxygen 1.6.1