GetBufferedPaintBits function (uxtheme.h)
Retrieves a pointer to the buffer bitmap if the buffer is a device-independent bitmap (DIB).
Syntax
HRESULT GetBufferedPaintBits(
HPAINTBUFFER hBufferedPaint,
[out] RGBQUAD **ppbBuffer,
[out] int *pcxRow
);
Parameters
hBufferedPaint
Type: HPAINTBUFFER
The handle of the buffered paint context, obtained through BeginBufferedPaint.
[out] ppbBuffer
Type: RGBQUAD**
When this function returns, contains a pointer to the address of the buffer bitmap pixels.
[out] pcxRow
Type: int*
When this function returns, contains a pointer to the width, in pixels, of the buffer bitmap. This value is not necessarily equal to the buffer width. It may be larger.
Return value
Type: HRESULT
Returns S_OK if successful, or an error value otherwise. If an error occurs, ppbBuffer is set to NULL and pcxRow is set to zero.
Remarks
The number of bits per pixel depends on the pixel format passed to BeginBufferedPaint.
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 |
See also
Other Resources
Reference