Export (0) Print
Expand All
Expand Minimize

IsThemePartDefined function

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

hTheme [in]

Type: HTHEME

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

iPartId [in]

Type: int

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

iStateId [in]

Type: int

Currently unused. The value should be 0.

Return value

Type: BOOL

Returns one of the following values.

Return codeDescription
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 XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Uxtheme.h

Library

UxTheme.lib

DLL

UxTheme.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft