The function allows you to get the minimum position of an UpDown control.
cGetUpDownMin (window-handle)
(i) window-handle Windows handle to a UpDown common control.
(i) Position Minimum 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.
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 < cGetUpDownMin(hwnd) ) Message( "UpDown", "Position %position% is to small.") Else ; Set the up down control. cSetUpDownPos(hwnd, position) EndIf Exit
cSetUpDownPos, cGetUpDownMax, cGetUpDownPos, cWndByClass, cWndInfo, DLLhwnd (WIL help).