Send this message to have the ImageList Control load items from a previously saved database (multipage TIFF file).
Ignored, use 0.
Pointer to the filename from which the database will be loaded.
Value | Meaning |
---|---|
SUCCESS | Function was successful. |
< 0 | An error occurred. Refer to Return Codes. |
The text for each item will be read from the CMNT_SZNAMEOFPAGE comment.
The associated macro is:
For a complete list of available macros, refer to the Ltlst.h file.
L_INT ILM_LOADDATABASEExample(HWND hCtrl, HWND hWndFrame)
{
if(IsWindow(hCtrl) && IsWindow(hWndFrame))
{
L_INT nRet = SUCCESS;
OPENFILENAME OFN;
L_TCHAR szFilter[] = {TEXT("ImgListDB\0") TEXT("*.tif\0\0")};
L_TCHAR szFile[L_MAXPATH] = TEXT("\0");
ZeroMemory(&OFN, sizeof(OFN));
OFN.lStructSize = sizeof(OPENFILENAME);
OFN.hwndOwner = hWndFrame;
OFN.lpstrFilter = szFilter;
OFN.lpstrCustomFilter = NULL;
OFN.lpstrFile = szFile;
OFN.nMaxFile = sizeof(szFile);
OFN.lpstrFileTitle = NULL;
OFN.lpstrTitle = TEXT("Load Database");
OFN.lpstrDefExt = NULL;
OFN.lpfnHook = NULL;
if(GetOpenFileName(&OFN))
{
nRet = (L_INT)SendMessage(hCtrl, L_ILM_LOADDATABASE, (WPARAM)0, (LPARAM)szFile);
if(nRet != SUCCESS)
MessageBox(hWndFrame, TEXT("Error loading file!"), TEXT("Error"), MB_OK);
}
return nRet;
}
else
return ERROR_INVALID_PARAMETER;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document