CTrackbar.GetNumTicsmethod
Retrieves the number of tick marks in a trackbar.
Syntax
FUNCTION GetNumTics (BYVAL hTrackbar AS HWND) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hTrackbar | Handle to the trackbar control. |
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.
Description
Retrieves the number of tick marks in a trackbar.
Remarks
The TBM_GETNUMTICS message counts all of the tick marks, including the first and last tick marks created by the trackbar.
Reference
- Include file
CTrackbar.inc - Defined in AfxNova/CTrackbar.inc:166
- Documented in Windows/WIndows Controls/CTrackbar Class.md
- Topic: CTrackbar Class