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. |
SUCCESS |
Function was successful |
< 0 |
An error occurred. Refer to Return Codes. |
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.
Elements: |
L_ILM_LOADDATABASE, L_ILM_SAVEDATABASE, L_ILN_LOADDBSTATUS, L_ILN_SAVEDBSTATUS |
Topics: |
|
|
// 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;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET