-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLVSort.h
34 lines (30 loc) · 843 Bytes
/
LVSort.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class CSortClass
{
public:
CSortClass(CListCtrl * _pWnd, const int _iCol, const bool _bIsNumeric);
virtual ~CSortClass();
int iCol;
CListCtrl * pWnd;
bool bIsNumeric;
void Sort(const bool bAsc);
static int CALLBACK CompareAsc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
static int CALLBACK CompareDes(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
static int CALLBACK CompareAscI(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
static int CALLBACK CompareDesI(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
public:
class CSortItem
{
public:
virtual ~CSortItem();
CSortItem(const DWORD _dw, const CString &_txt);
CString txt;
DWORD dw;
};
class CSortItemInt
{
public:
CSortItemInt(const DWORD _dw, const CString &_txt);
int iInt ;
DWORD dw;
};
};