L_ILM_CANCELDB

Send this message to cancel the progress of a database load/save that was started with either the L_ILM_LOADDATABASE or L_ILM_SAVEDATABASE message.

Parameters

wParam

Ignored, use 0.

LParam

Ignored, use 0.

Returns

Value Meaning
SUCCESS Function was successful
< 0 An error occurred. Refer to Return Codes.

Comments

Send this message to the control while processing either the L_ILN_LOADDBSTATUS or L_ILN_SAVEDBSTATUS notification commands in order to stop the database process.

The associated macro is:

For a complete list of available macros, refer to the Ltlst.h file.

See Also

Elements

Topics

Example

NOTE this is not a complete sample, and is meant only to show you a way in which this message can be used .

L_INT ILM_CANCELDBExample(HWND hCtrl,WPARAM wParam) 
{ 
  
      if((HIWORD(wParam) == L_ILN_LOADDBSTATUS) || 
         (HIWORD(wParam) == L_ILN_SAVEDBSTATUS)) 
      { 
         static int x=0; 
         x++; 
         if(x>2)//stop after loading/saving 3 items 
            L_ImgListCancelDB(hCtrl); 
      } 
      return SUCCESS; 
} 

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

LEADTOOLS Raster Imaging C API Help