Improve: #48 Support sorting in file management dialog

This commit is contained in:
yuanyuanxiang
2025-06-09 03:36:10 +08:00
parent ae39639e9f
commit 70d5382fda
5 changed files with 60 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include "afxcmn.h"
#include <string.h>
class CSortListCtrl : public CListCtrl
{
public:
CSortListCtrl(void) : m_bAsc(false), m_nSortedCol(0){}
~CSortListCtrl(void){}
// 是否为升序
bool m_bAsc;
// 当前排列的序
int m_nSortedCol;
afx_msg void OnLvnColumnclick(NMHDR *pNMHDR, LRESULT *pResult);
DECLARE_MESSAGE_MAP()
};