Help Center

CTrackbar.GetTicmethod

Retrieves the length of the slider in a trackbar.

WindowsmethodCTrackbar.incdocumented

Syntax

FUNCTION GetTic (BYVAL hTrackbar AS HWND, BYVAL iTic AS DWORD) AS LONG

Parameters

NameDescription
hTrackbarHandle to the trackbar control.
iTicZero-based index identifying a tick mark. Valid indexes are in the range from zero to two less than the tick count returned by the TBM_GETNUMTICS message.

Return value

Returns the logical position of the specified tick mark, or -1 if iTic does not specify a valid index.

Description

Retrieves the logical position of a tick mark in a trackbar. The logical position can be any of the integer values in the trackbar's range of minimum to maximum slider positions.

Reference

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