Export (0) Print
Expand All
Expand Minimize

BufferedPaintClear function

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.

prc [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Uxtheme.h

DLL

UxTheme.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft