Send this message to get the ImageList Control's current selection options.
Ignored, use 0.
Pointer to an LILSELOPTION structure to be filled with the current options.
Value | Meaning |
---|---|
SUCCESS | Function was successful. |
< 0 | An error occurred. Refer to Return Codes. |
The structure pointed to by lParam will be updated with the ImageList Control's current options.
You must set the uStructSize member of the LILSELOPTION structure before using this message.
The default selection option values are:
Selection option | Default value |
---|---|
uAllowSelection | ALLOWSELECTION_NONE |
uSelectionStyle | SELECTIONSTYLE_SELECTCOLOR |
crSelection | RGB(0,0,255) |
The associated macro is:
For a complete list of available macros, refer to the Ltlst.h file.
L_INT ILM_GETSELOPTIONSExample(HWND hCtrl)
{
if(IsWindow(hCtrl))
{
LILSELOPTION Opt; /* selection options structure */
L_INT nRet;
/* get current selection options */
Opt.uStructSize = sizeof(LILSELOPTION);
nRet = (L_INT)SendMessage(hCtrl, L_ILM_GETSELOPTIONS, 0, (LPARAM)&Opt);
/* now, set some new options */
if(Opt.uAllowSelection != ALLOWSELECTION_MULTI)
Opt.uAllowSelection = ALLOWSELECTION_MULTI;
Opt.uSelectionStyle = SELECTIONSTYLE_SELECTCOLOR;
Opt.crSelection = RGB(0,255,0);
nRet = (L_INT)SendMessage(hCtrl, L_ILM_SETSELOPTIONS, 0, (LPARAM)&Opt);
/* update the control */
RedrawWindow(hCtrl, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE);
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