GetThemeTransitionDuration function

Gets the duration for the specified transition.

Syntax

THEMEAPI GetThemeTransitionDuration(
  HTHEME hTheme,
  int    iPartId,
  int    iStateIdFrom,
  int    iStateIdTo,
  int    iPropId,
  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.

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

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