IsThemePartDefined function

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

Syntax

void IsThemePartDefined(
  HTHEME hTheme,
  int    iPartId,
  int    iStateId
);

Parameters

hTheme

Type: HTHEME

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

iPartId

Type: int

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

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

   
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