sortclass.h
来自「對網只操作的函數,很不錯」· C头文件 代码 · 共 48 行
H
48 行
// SortClass.h : header file
//
#ifndef _SORTCLASS_H_
#define _SORTCLASS_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
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;
};
};
/////////////////////////////////////////////////////////////////////////////
#endif _SORTCLASS_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?