multibuff.h

来自「windows mobile上很好用的音频播放器希望大家会喜欢」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef __MULTIBUFF_H__
#define __MULTIBUFF_H__

typedef int (CALLBACK *LPCOMPAREFUNC)(LPARAM, LPARAM, LPARAM);
typedef BOOL (CALLBACK *LPFINDFUNC)(LPARAM, LPARAM);

#define __CHECK_VALUE

class CMultiBuff
{
protected:
	DWORD* m_pData;
	int m_nSize;
	
public:
	CMultiBuff();
	~CMultiBuff();

	DWORD GetAt(int iPos);
	void SetAt(int iPos, DWORD dwValue);
	DWORD RemoveAt(int iPos);
	void RemoveAll();
	
	void Insert(DWORD dwValue, int nIndex);
	int Add(DWORD dwValue);

	int GetCount();
	BOOL IsEmpty();
	BOOL Sort(LPCOMPAREFUNC pfnCompare, DWORD dwParam);
	int Find(LPFINDFUNC pfnFind, int iStart, DWORD dwParam);
};

#endif //!__MULTIBUFF_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?