📄 ztreeproperties.h
字号:
// zTreeProperties.h: interface for the zTreeProperties class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ZTREEPROPERTIES_H__5B6AE93F_3C9E_4AE1_9DCB_3F8DB5F2266D__INCLUDED_)
#define AFX_ZTREEPROPERTIES_H__5B6AE93F_3C9E_4AE1_9DCB_3F8DB5F2266D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "zcontrol.h"
#include "zFile.h"
#include <vector>
using namespace std;
class zTreeProperties
{
typedef struct _ItemProperties
{
int nType;
TCHAR szTitle[20];
TCHAR szName[MAX_PATH];
long nParam;
_ItemProperties()
{
memset(this,0,sizeof(_ItemProperties));
}
}ITEMPROPERTIES;
vector<ITEMPROPERTIES> vProperties;
public:
zTreeProperties();
virtual ~zTreeProperties();
public:
int Save(zFile * pFile);
int Load(zFile * pFile);
//属性操作
int GetSize();
void ResetProperties();
int DeleteProperties(int n);
//对结构操作
int AddProperties(int nType,TCHAR * pTitle,TCHAR * pName=NULL,long nParam=0);
int GetType(int n);
TCHAR * GetTitle(int n);
TCHAR * GetName(int n);
long GetParam(int n);
};
#endif // !defined(AFX_ZTREEPROPERTIES_H__5B6AE93F_3C9E_4AE1_9DCB_3F8DB5F2266D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -