TBM_SETLINESIZE

This message sets the size of the line for a trackbar. The line size affects how much the slider moves for the TB_LINEUP and TB_LINEDOWN notification messages.

Sets the number of logical positions the trackbar’s slider moves in response to keyboard input from the arrow keys, such as the RIGHT ARROW or DOWN ARROW keys. The logical positions are the integer increments in the trackbar’s range of minimum to maximum slider positions. 

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later

Syntax

  1. TBM_SETLINESIZE wParam = 0; lParam = (LONG) lLineSize;

Parameters

lLineSize

New line size.

Return Values

Returns a 32-bit value that specifies the previous line size.

Remarks

The default setting for the line size is 1.

The trackbar also sends the TB_LINEUP and TB_LINEDOWN notification messages to its parent window when the user presses the arrow keys.

See Also

TBM_GETLINESIZE