Get the position of an UpDown control.
cGetUpDownPos (window-handle)
(i) window-handle Windows handle to a UpDown common control.
(i) Position Current position of the UpDown control.
The function allows you to get the position of an UpDown control. The UpDown control often has a companion control called a "buddy" window. This function will report an error if the control does not have a buddy window, or if the buddy window has an out-of-range value.
The class name for this control is "msctls_updown32".
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) ; Adjust the control relative to its current position position = position + 1 ; Set the number of days to keep pages in history via the up down control. cSetUpDownPos(hwnd, position) Exit
cGetUpDownMin, cGetUpDownMax, cWndByClass, cWndInfo, DLLhwnd (WIL help).