#include "precomp.h"
#include "listview.h"
Go to the source code of this file.
◆ PSort
◆ Sort
◆ ListView_SortEx()
| BOOL ListView_SortEx |
( |
HWND |
hListView, |
|
|
int |
iSortingColumn, |
|
|
int |
iSortedColumn |
|
) |
| |
Definition at line 43 of file listview.c.
46{
51
54
57
59 {
62 hColumn.fmt &= ~HDF_SORTUP & ~HDF_SORTDOWN;
63 hColumn.lParam = 0;
65 }
66
69
70 bSortAsc = !(hColumn.lParam == 2);
71
72 hColumn.fmt &= (bSortAsc ? ~HDF_SORTDOWN : ~HDF_SORTUP );
74 hColumn.lParam = (
LPARAM)(bSortAsc ? 2 : 1);
76
77
78 sort.bSortAsc = bSortAsc;
79 sort.hList = hListView;
80 sort.nClickedColumn = iSortingColumn;
82}
int CALLBACK SortListView(LPARAM lItemParam1, LPARAM lItemParam2, LPARAM lPSort_S)
#define Header_GetItem(hwndHD, i, phdi)
#define Header_SetItem(hwndHD, i, phdi)
#define ListView_GetHeader(hwnd)
#define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm)
Referenced by ServicesPageWndProc(), and ToolsPageWndProc().
◆ SortListView()
Definition at line 22 of file listview.c.
25{
27
28 int iItem1 = (
int)lItemParam1;
29 int iItem2 = (
int)lItemParam2;
30
33
36
37
38
40}
int WINAPI StrCmpLogicalW(const WCHAR *str, const WCHAR *comp)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_)
Referenced by ListView_SortEx().