GetThemePropertyOrigin function (uxtheme.h)

Retrieves the location of the theme property definition for a property.

Syntax

HRESULT GetThemePropertyOrigin(
  HTHEME         hTheme,
  int            iPartId,
  int            iStateId,
  int            iPropId,
  PROPERTYORIGIN *pOrigin
);

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 that contains the theme. See Parts and States.

iStateId

Type: int

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

iPropId

Type: int

Value of type int that specifies the property to retrieve. You may use any of the property values from Vssym32.h. These values are described in the reference pages for the functions that use them. For instance, the GetThemeInt function uses the TMT_BORDERSIZE value. See the Visual Styles Reference for a list of functions.

pOrigin

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 2003 [desktop apps only]
Target Platform Windows
Header uxtheme.h
Library UxTheme.lib
DLL UxTheme.dll

See also

Property Identifiers