Rediger

Del via


TBM_GETNUMTICS message

Retrieves the number of tick marks in a trackbar.

Parameters

wParam

Must be zero.

lParam

Must be zero.

Return value

If no tick flag is set, it returns 2 for the beginning and ending ticks. If TBS_NOTICKS is set, it returns zero. Otherwise, it takes the difference between the range minimum and maximum, divides by the tick frequency, and adds 2.

Remarks

The TBM_GETNUMTICS message counts all of the tick marks, including the first and last tick marks created by the trackbar.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h