LImageListControl::Sort

#include "ltwrappr.h"

L_INT LImageListControl::Sort(bAscending=TRUE)

Sorts the items in the ImageList Control based on their text attribute.

Parameters

L_BOOL bAscending

Flag that indicates the direction for sorting. Possible values are:

Value Meaning
TRUE Ascending sort.
FALSE Descending sort.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

If bAscending is TRUE, items will be sorted in ascending order, otherwise, items will be sorted in descending order.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT LImageListControl__SortExample(LImageListControl& m_ImgList) 
{ 
   L_INT nRet; 
 
   // sort descending order 
   nRet = m_ImgList.Sort(FALSE); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 21.0.2021.4.8
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help