BufferedPaintClear function (uxtheme.h)

Clears a specified rectangle in the buffer to ARGB = {0,0,0,0}.

Syntax

HRESULT BufferedPaintClear(
       HPAINTBUFFER hBufferedPaint,
  [in] const RECT   *prc
);

Parameters

hBufferedPaint

Type: HPAINTBUFFER

The handle of the buffered paint context, obtained through BeginBufferedPaint.

[in] prc

Type: const RECT*

A pointer to a RECT structure that specifies the rectangle to clear. Set this parameter to NULL to specify the entire buffer.

Return value

Type: HRESULT

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

Remarks

This function accesses the buffer bits directly and is therefore faster than calling a GDI function to erase the buffer.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uxtheme.h
DLL UxTheme.dll