DrawThemeParentBackground function

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

Syntax

THEMEAPI DrawThemeParentBackground(
  HWND       hwnd,
  HDC        hdc,
  const RECT *prc
);

Parameters

hwnd

Type: HWND

The child control.

hdc

Type: HDC

The child control's DC.

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

Type: HRESULT

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

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header uxtheme.h
Library UxTheme.lib
DLL UxTheme.dll