IRangeValueProvider::get_SmallChange 方法(uiautomationcore.h)

Specifies the value that is added to or subtracted from the IRangeValueProvider::Value property when a small change is made, such as when an arrow key is pressed.

此属性为只读。

Syntax

HRESULT get_SmallChange(
  double *pRetVal
);

Return value

None

Remarks

SmallChange 属性可以支持非数字(NaN)值。 返回 NaN 值时,提供程序应返回一个静默(非信号)NaN,以避免在打开浮点异常时引发异常。 以下示例演示如何创建安静的 NaN:

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

或者,可以从标准C++库使用以下函数:

numeric_limits<double>::quiet_NaN()

Requirements

Requirement Value
最低支持的客户端 Windows XP [桌面应用 |UWP 应用]
支持的最低服务器 Windows Server 2003 [桌面应用 |UWP 应用]
Target Platform Windows
Header uiautomationcore.h (包括 UIAutomation.h)
DLL Uiautomationcore.dll

See also

IRangeValueProvider

UI 自动化提供程序概述