获取指定转换的持续时间。
Syntax
HRESULT GetThemeTransitionDuration(
HTHEME hTheme,
int iPartId,
int iStateIdFrom,
int iStateIdTo,
int iPropId,
[out] DWORD *pdwDuration
);
参数
hTheme
类型: HTHEME
主题数据的句柄。
iPartId
类型:int
部件的 ID。
iStateIdFrom
类型:int
转换前部件的状态 ID。
iStateIdTo
类型:int
转换后部件的状态 ID。
iPropId
类型:int
属性 ID。
[out] pdwDuration
类型: DWORD*
接收转换持续时间的变量的地址(以毫秒为单位)。
返回值
类型: HRESULT
如果此函数成功,它将返回 S_OK。 否则,它将返回 HRESULT 错误代码。
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows Vista [仅限桌面应用] |
| 支持的最低服务器 | Windows Server 2008 [仅限桌面应用] |
| 目标平台 | Windows操作系统 |
| Header | uxtheme.h |
| Library | Uxtheme.lib |
| DLL | UxTheme.dll |