Help Center

CTrackbar.GetLineSizemethod

Retrieves the number of logical positions the trackbar's slider moves in response to keyboard input from the arrow keys, such as the or keys.

WindowsmethodCTrackbar.incdocumented

Syntax

FUNCTION GetLineSize (BYVAL hTrackbar AS HWND) AS LONG

Parameters

NameDescription
hTrackbarHandle to the trackbar control.

Return value

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

Description

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

Remarks

The default setting for the line size is 1.

The trackbar also sends a WM_HSCROLL or WM_VSCROLL message with the TB_LINEUP and TB_LINEDOWN notification codes to its parent window when the user presses the arrow keys.

Reference

  • Include file CTrackbar.inc
  • Defined in AfxNova/CTrackbar.inc:158
  • Documented in Windows/WIndows Controls/CTrackbar Class.md
  • Topic: CTrackbar Class