GetThemeSysBool function (uxtheme.h)

Retrieves the Boolean value of a system metric.

Syntax

BOOL GetThemeSysBool(
  [in] HTHEME hTheme,
  [in] int    iBoolId
);

Parameters

[in] hTheme

Type: HTHEME

Handle to theme data.

[in] iBoolId

Type: int

Value of type int that specifies the system Boolean metric desired. May be the following value.

Value Meaning
TMT_FLATMENUS
Describes how menus are drawn. If TRUE, menus are drawn without shadows. If FALSE, menus have shadows underneath them.

Return value

Type: BOOL

Value of desired system metric.

Remarks

If the theme data handle is not a NULL handle, this function returns the desired BOOL from the SysMetrics section of the visual style. If the theme data handle is NULL, this function returns the value of the specified system Boolean.

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