Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GetThemeTransitionDuration function (uxtheme.h)

Gets the duration for the specified transition.

Syntax

HRESULT GetThemeTransitionDuration(
 HTHEME hTheme,
 int iPartId,
 int iStateIdFrom,
 int iStateIdTo,
 int iPropId,
 [out] DWORD *pdwDuration
);

Parameters

hTheme

Type: HTHEME

Handle of the theme data.

iPartId

Type: int

ID of the part.

iStateIdFrom

Type: int

State ID of the part before the transition.

iStateIdTo

Type: int

State ID of the part after the transition.

iPropId

Type: int

Property ID.

[out] pdwDuration

Type: DWORD*

Address of a variable that receives the transition duration, in milliseconds.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uxtheme.h
Library Uxtheme.lib
DLL UxTheme.dll

Feedback

Was this page helpful?

Additional resources