📄 fileinfoarray.h
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
// http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////
// FileInfoArray.h: interface for the CFileInfoArray class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FILEINFOARRAY_H__18DBC623_5613_11D3_B8DB_00600838CD5F__INCLUDED_)
#define AFX_FILEINFOARRAY_H__18DBC623_5613_11D3_B8DB_00600838CD5F__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
typedef struct {
TCHAR strFullName[MAX_PATH + 1];
TCHAR strFriendlyName[MAX_PATH + 1];
TCHAR strSize[24];
TCHAR strType[64];
time_t tModTime;
int iIcon;
bool bDirectory;
bool bValid;
} FileInfoStruct;
class CFileInfoArray
{
public:
int GetNumEntries();
BOOL SetFriendlyName(int iItem, LPCTSTR strFullName);
CString GetFriendlyName(int iItem);
BOOL SortItems(BOOL bAscending, int nType, int nLow = 0, int nHigh = -1);
UINT GetTotalSize();
time_t GetModTime(int iIndex);
BOOL SetModTime(int iIndex, time_t tTime);
LPCTSTR GetType(int iIndex);
BOOL SetType(int iIndex, LPCTSTR strType);
LPCTSTR GetSize(int iIndex);
BOOL SetSize(int iIndex, LPCTSTR strSize);
bool SetFullName(int iItem, LPCTSTR strFullName);
CFileInfoArray();
virtual ~CFileInfoArray();
int Add(LPCTSTR strFullName);
bool SetIcon(int iItem, int iIcon);
bool SetDirectory(int iItem, bool bDirectory);
bool Delete(int iItem);
bool Clear();
LPCTSTR GetFullName(int iItem);
int GetIcon(int iItem);
bool GetDirectory(int iItem);
private:
int m_iNumSpace;
FileInfoStruct *m_pData;
int m_iNumData;
protected:
BOOL SwapItems(int nItemA, int nItemB);
BOOL IsItemBefore(int nItem, int nCompare, int nType);
};
#endif // !defined(AFX_FILEINFOARRAY_H__18DBC623_5613_11D3_B8DB_00600838CD5F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -