LBitmapWindow::EnableDoubleBuffer

#include "ltwrappr.h"

virtual L_BOOL LBitmapWindow::EnableDoubleBuffer(bEnable)

Enables or disables double buffering.

Parameters

L_BOOL bEnable

Value that specifies whether to enable double buffering. Possible values are:

Value Meaning
TRUE Enable double buffering.
FALSE Disable double buffering.

Returns

The previous setting.

Comments

This function enables or disables a double buffering process. This function should be used after the double buffering process is already in place. This means that the double buffering handle should already be created, and all paint calls should already be wrapped in LDoubleBuffer::Begin.

For more information, refer to Minimizing Flicker with Double Buffering.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

L_INT LBitmapWindow__EnableDoubleBufferExample() 
{ 
    
   LBitmapWindow m_LBitmapWnd; 
   L_BOOL bOldStatus; 
 
   if(!m_LBitmapWnd.IsDoubleBufferEnabled()) 
      bOldStatus = m_LBitmapWnd.EnableDoubleBuffer(TRUE); 
 
   return SUCCESS; 
} 
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
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.