📄 mylistctrl.h
字号:
#if !defined(AFX_MYLISTCTRL_H__EC71BB08_E6A3_45E5_BFA1_ABF0B0EFB5CB__INCLUDED_)
#define AFX_MYLISTCTRL_H__EC71BB08_E6A3_45E5_BFA1_ABF0B0EFB5CB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyListCtrl.h : header file
//
#include <afxtempl.h>
/////////////////////////////////////////////////////////////////////////////
// CMyListCtrl window
class CMyListCtrl : public CListCtrl
{
// Construction
public:
CMyListCtrl();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyListCtrl)
protected:
//}}AFX_VIRTUAL
// Implementation
public:
void EnableSort(BOOL bSort=TRUE);
static int CALLBACK MyCompareProcNumD(LPARAM lParam1,LPARAM lParam2,LPARAM lParamSort);
static int CALLBACK MyCompareProcNumA(LPARAM lParam1,LPARAM lParam2,LPARAM lParamSort);
static int CALLBACK MyCompareProcStrD(LPARAM lParam1,LPARAM lParam2,LPARAM lParamSort);
static int CALLBACK MyCompareProcStrA(LPARAM lParam1,LPARAM lParam2,LPARAM lParamSort);
CStringArray m_ColType;
BOOL m_bSortMode;
BOOL m_bEnableSort;
int nSortItem;
virtual ~CMyListCtrl();
// Generated message map functions
protected:
//{{AFX_MSG(CMyListCtrl)
afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYLISTCTRL_H__EC71BB08_E6A3_45E5_BFA1_ABF0B0EFB5CB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -