L_INT LImageListControl::SortExt(pSortOptions)
Sorts the items in the ImageList Control based on their text or Extended Text attributes referenced in the pTextExt member of the LILITEM structure.
Pointer to the LILSORTOPTIONS structure that contains the sorting options to be used.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 0 | An error occurred. Refer to Return Codes. |
The ImageList Control items will be sorted according to the options in the structure pointed to by pSortOptions.
You must set the uStructSize member of the LILSORTOPTIONS structure before using this function.
Win32, x64.
L_INT LImageListControl__SortExtExample(HWND hWnd, LImageListControl& ImgList)
{
L_INT nRet;
HWND hList;
LILSORTOPTIONS SortOptions;
if(IsWindow(hWnd))
{
hList = ImgList.CreateControl(hWnd, 0) ;
ZeroMemory(&SortOptions, sizeof(LILSORTOPTIONS));
SortOptions.uStructSize = sizeof(LILSORTOPTIONS);
SortOptions.bAscending = TRUE;
SortOptions.bCaseSensitive = TRUE;
SortOptions.bUseExtText = FALSE;
/* sort items in Ascending, case Sensitive, and using Text string */
nRet = ImgList.SortExt(&SortOptions);
if(nRet != SUCCESS)
return nRet;
/* update the control */
RedrawWindow( hWnd, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE);
}
return SUCCESS;
}
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.