cGetTrackMax

Get the maximum position of a Track Bar control.

Syntax:

cGetTrackMax (window-handle)

Parameters:

(i) window-handle Windows handle to a Track Bar common control.

Return:

(i) Position Maximum position setting of Track Bar.

 

This function returns the maximum position of Track Bar control. The maximum position of the control is application specific and can change dynamically.

The class name for the Tool Bar control is "msctls_trackbar32".

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")

; Find the key board track bar handle Run("rundll32.exe", "shell32.dll,Control_RunDLL main.cpl,Keyboard") hwndex = DllHwnd("Keyboard Properties") hwnd = cWndbyclass(hwndex,"#32770") hwnd = cWndbyclass(hwnd,"msctls_trackbar32") ; Get the current position. Position = cGetTrackPos(hwnd) ; Move the position up one Position = Position + 1 daMax = cGetTrackMax(hwnd) If Position <= daMax    If cSetTrackPos(hwnd, Position)       Message("Repeat delay", Position)    Else       Message("Repeat delay", "%Position% failed")    EndIf Else    Message("Repeat delay", "Currently at max position") EndIf Exit

See Also:

cGetTrackPos, cGetTrackMin