This topic has not yet been rated - Rate this topic

BufferedPaintClear function

Applies to: desktop apps only

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

Minimum supported server

Windows Server 2008

Header

Uxtheme.h

DLL

UxTheme.dll

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ