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.

Parameter

Description

wParam

Ignored, use 0.

LParam

Ignored, use 0.

Returns

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:

L_ImgListCancelDB(hWnd)

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

See Also

Elements:

L_ILM_LOADDATABASE, L_ILM_SAVEDATABASE, L_ILN_LOADDBSTATUS, L_ILN_SAVEDBSTATUS

Topics:

Using the ImageList Control

 

Image List Control Messages

 

Example

/* NOTE this is not a complete sample, and is meant only to
    show you a way in which this message can be used */
      case IDC_LEADIMAGELIST:
         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(hCtl);
         }