LDoubleBuffer::End

#include "ltwrappr.h"

virtual L_INT LDoubleBuffer::End(hDC)

Displays the double buffered paint operations.

Parameters

HDC hDC

Handle to the original target device context

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Use LDoubleBuffer::End when ready to paint all that has been double-buffered to the target hDC. All double buffered paint operations should be wrapped in LDoubleBuffer::Begin and LDoubleBuffer::End calls.

The hDC argument is the device context that you want to double buffer, which in this case should be the same as the hDC argument that was passed to LDoubleBuffer::Begin.

Note that you must create a double buffer handle with LDoubleBuffer::CreateHandle before calling this function.

For more information, see the topic Minimizing Flicker with Double Buffering.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

This sample illustrates double buffering by bouncing a ball around
a window that contains an image
For simplicity, we assume both the window the hDC are 24 bit
Run the example twice --

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help