Send this message to get the current number of selected items in the ImageList Control.
Ignored, use 0.
Ignored, use 0.
| Value | Meaning |
|---|---|
| >=0 | The number of selected items. |
| < 0 | An error occurred. Refer to Return Codes. |
Use this message before using L_ILM_GETSELITEMS in order to get the number of selected items for allocating storage for the LILITEM structures.
The associated macro is:
For a complete list of available macros, refer to the Ltlst.h file.
L_INT ILM_GETSELCOUNTExample(HWND hCtrl){if(IsWindow(hCtrl)){L_TCHAR szText[200];L_INT nCount = (L_INT)SendMessage(hCtrl, L_ILM_GETSELCOUNT, 0, 0L);wsprintf(szText, TEXT("%ld"),nCount);MessageBox(hCtrl, szText, TEXT("SelectCount"), MB_OK);return SUCCESS;}elsereturn 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
