Send this message to sort the items in the ImageList Control based on their text attribute.
Boolean flag, TRUE to sort ascending, FALSE to sort descending.
Ignored, use 0.
Value | Meaning |
---|---|
SUCCESS | Function was successful |
< 0 | An error occurred. Refer to Return Codes. |
If wParam is TRUE, items will be sorted in ascending order, otherwise, items will be sorted in descending order.
The associated macro is:
For a complete list of available macros, refer to the Ltlst.h file.
L_INT ILM_SORTExample(HWND hCtrl)
{
if(IsWindow(hCtrl))
{
/* sort items ascending */
L_INT nRet = (L_INT)SendMessage(hCtrl, L_ILM_SORT, (WPARAM)TRUE, 0L);
/* 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