cGetUpDownMax

The function allows you to get the maximum position of an UpDown control.

Syntax:

cGetUpDownMax (window-handle)

Parameters:

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

Returns:

(i) Position Maximum position of the UpDown control.

 

The class name for this control is "msctls_updown32".

 

32-bit Extender

This function is designed for Windows 32-bit application controls. It cannot be used on Windows 64-bit controls.

64-bit Extender

This function is designed for Windows 64-bit application controls. It cannot be used on Windows on 32-bit controls.

 

Example:

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

; Internet properties keep history. Run("rundll32.exe", "shell32.dll,Control_RunDLL inetcpl.cpl,@0") hwndex = DllHwnd("Internet Properties") hwnd = cWndbyclass(hwndex,"#32770") hwnd = cWndbyclass(hwnd,"msctls_updown32") ; Get the current value. position = cGetUpDownPos(hwnd) position = position + 1 ; In range? If ( position > cGetUpDownMax(hwnd) )    Message( "UpDown", "Position %position% is to large.") Else    ; Set the up down control.    cSetUpDownPos(hwnd, position) EndIf Exit

See Also:

cSetUpDownPos, cGetUpDownMin, cGetUpDownPos, cWndByClass, cWndInfo, DLLhwnd (WIL help).