IRangeValueProvider::LargeChange Property

Gets the value that is added to or subtracted from the IRangeValueProvider::Value property when a large change is made, such as with the PAGE DOWN key.

Syntax


HRESULT IRangeValueProvider::get_LargeChange(double *pRetVal);

Parameters

pRetVal
[retval][out] The address of a variable that receives the large-change value unique to the control, or NULL if the control does not support IRangeValueProvider::LargeChange.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The LargeChange property can support Not a Number (NaN) value. When returning a NaN value, the provider should return a quiet (non-signalling) NaN to avoid raising an exception if floating point exceptions are turned on. The following example shows how to create a quiet NaN:

ULONGLONG ulNaN = 0xFFFFFFFFFFFFFFFF;
    *pRetVal = *reinterpret_cast<double*>(&ulNaN);

Alternatively, you can use the following function from the standard C++ libraries:


numeric_limits<double>::quiet_NaN( )

See Also

UI Automation Providers Overview

Community Additions

Show: