SortColumn.h
资源名称:ISQL_src.zip [点击查看]
上传用户:jsxglz
上传日期:2007-01-03
资源大小:117k
文件大小:2k
源码类别:
SQL Server
开发平台:
Visual C++
- #if !defined(AFX_SORTCOLUMN_H__B429EFC1_93B3_11D2_BD3E_204C4F4F5020__INCLUDED_)
- #define AFX_SORTCOLUMN_H__B429EFC1_93B3_11D2_BD3E_204C4F4F5020__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //////////////////////////////////////////////////////////////////////
- // CSortItemText
- class CSortItemText
- {
- public:
- CSortItemText();
- CSortItemText(const DWORD& dwData, const CString& sTxt);
- virtual ~CSortItemText();
- CString m_strTxt;
- DWORD m_dwData;
- };
- //////////////////////////////////////////////////////////////////////
- // CSortItemInt
- class CSortItemInt
- {
- public:
- CSortItemInt();
- CSortItemInt(const DWORD& dwData, const CString& sTxt);
- virtual ~CSortItemInt();
- CString m_strTxt;
- int m_nInt;
- DWORD m_dwData;
- };
- //////////////////////////////////////////////////////////////////////
- // CSortColumn
- class CSortColumn
- {
- public:
- CSortColumn();
- CSortColumn(CListCtrl* pWnd, const int& nCol, const bool& bIsNumeric);
- virtual ~CSortColumn();
- void Sort(const bool& bAsc);
- CListCtrl* m_pWnd;
- int m_nCol;
- bool m_bIsNumeric;
- static int CALLBACK CompareAscText(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
- static int CALLBACK CompareDesText(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
- static int CALLBACK CompareAscInt(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
- static int CALLBACK CompareDesInt(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
- };
- #endif // !defined(AFX_SORTCOLUMN_H__B429EFC1_93B3_11D2_BD3E_204C4F4F5020__INCLUDED_)