DrawThemeParentBackground function (uxtheme.h)

Draws the part of a parent control that is covered by a partially-transparent or alpha-blended child control.


HRESULT DrawThemeParentBackground(
  [in] HWND       hwnd,
  [in] HDC        hdc,
  [in] const RECT *prc


[in] hwnd

Type: HWND

The child control.

[in] hdc

Type: HDC

The child control's DC.

[in] prc

Type: const RECT*

The area to be drawn. The rectangle is in the child window's coordinates. If this parameter is NULL, the area to be drawn includes the entire area occupied by the child control.

Return value


If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


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