LBitmapBase::EnableChangeNotification

#include "ltwrappr.h"

virtual L_BOOL LBitmapBase::EnableChangeNotification(bEnable=TRUE)

L_BOOL bEnable;

flag that indicates whether to enable change notifications

Enables or disables the sending of change notifications.

Parameter Description
bEnable Flag that indicates whether to enable or disable the change notifications. Possible values are:
  Value Meaning
  TRUE Enable the change notifications.
  FALSE Disable the change notifications.

Returns

The previous setting.

Comments

Call this function to enable or disable the sending of change notifications. Disabling the change notifications will speed up your code because the notification functions will not be called. However, this will prevent you from having control over the different operations that are performed on the bitmap.

Required DLLs and Libraries

LTDIS
LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LBitmapBase::StartChanging, LBitmapBase::EndChanging, LBitmapBase::IsChangeNotificationEnabled, LBitmapBase::EnableAlwaysEndNotification, LBitmapBase::IsAlwaysEndNotification, Class Members

Example

L_INT LBitmapBase__EnableChangeNotificationExample() 
{ 
   L_INT nRet; 
   LBitmapBase  MyBitmap; 
 
   nRet =MyBitmap.Load(MAKE_IMAGE_PATH(TEXT("image1.cmp")),24); 
   if(nRet !=SUCCESS) 
      return nRet; 
 
   if(MyBitmap.IsChangeNotificationEnabled()==FALSE) 
      MyBitmap.EnableChangeNotification(TRUE); 
 
   return SUCCESS; 
} 
Help Version 20.0.2019.9.23
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help