IsThemePartDefined function (uxtheme.h)

Retrieves whether a visual style has defined parameters for the specified part and state.

Syntax

BOOL IsThemePartDefined(
  [in] HTHEME hTheme,
  [in] int    iPartId,
  [in] int    iStateId
);

Parameters

[in] hTheme

Type: HTHEME

Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.

[in] iPartId

Type: int

Value of type int that specifies the part. See Parts and States.

[in] iStateId

Type: int

Currently unused. The value should be 0.

Return value

Type: BOOL

Returns one of the following values.

Return code Description
TRUE
The theme has defined parameters for the specified iPartId and iStateId
FALSE
The theme does not have defined parameters for the specified iPartId and iStateId

Requirements

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