I do following how to use.
Is there a problem?
I wait for an answer from a support team.
typedef int (__cdecl * SortCellComboBox_CallBack )( const void * , const void * );
int Fn_SortNumAscending( const void * arg1 , const void * arg2)
{
CExtGridCellComboBox::ITEM_INFO * pData1 = *(CExtGridCellComboBox::ITEM_INFO**)arg1;
CExtGridCellComboBox::ITEM_INFO * pData2 = *(CExtGridCellComboBox::ITEM_INFO**)arg2;
double dWk1 = atof(pData1->m_sString);
double dWk2 = atof(pData2->m_sString);
if ( dWk1 != dWk2 ){
if ( dWk1 > dWk2 ){
return 1;
}else{
return -1;
}
}
return 0;
}
void CXGridCellComboBox::Sort( SortCellComboBox_CallBack Fn_Sort )
{
qsort(
m_arrItems.GetData() ,
m_arrItems.GetSize() ,
sizeof(m_arrItems[0]) ,
Fn_Sort
);
}