📄 gridcellimage.h
字号:
// GridCellImage.h: interface for the CGridCellImage class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GRIDCELLIMAGE_H__DCD35E64_609C_4322_A540_648051CFE441__INCLUDED_)
#define AFX_GRIDCELLIMAGE_H__DCD35E64_609C_4322_A540_648051CFE441__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "JnImage.h"
#include "GridCellText.h"
class CGridCellImage : public CGridCellText
{
public:
CGridCellImage();
virtual ~CGridCellImage();
DECLARE_SERIAL(CGridCellImage);
virtual void Serialize(CArchive& ar);
CJnImage* pImage; //存储图像的指针
CSize size; //图像尺寸
BOOL m_bBackImage; //是否是背景图像
JNGRIDIMAGESHOWTYPE m_nType;
BOOL m_bAutoDelete; //是否自动删除图像
};
class CGridCellRadio : public CGridCellImage
{
public:
CGridCellRadio();
virtual ~CGridCellRadio();
DECLARE_SERIAL(CGridCellRadio);
virtual void Serialize(CArchive& ar);
GridCtrlStatusEnum m_nButtonStatus;
int nGroup;
};
class CGridCellCheckBox : public CGridCellImage
{
public:
CGridCellCheckBox();
virtual ~CGridCellCheckBox();
DECLARE_SERIAL(CGridCellCheckBox);
virtual void Serialize(CArchive& ar);
GridCtrlStatusEnum m_nButtonStatus;
};
class CGridCellEdit : public CGridCellText
{
public:
CGridCellEdit();
virtual ~CGridCellEdit();
DECLARE_SERIAL(CGridCellEdit);
virtual void Serialize(CArchive& ar);
};
class CGridCellComboBox : public CGridCellText
{
public:
CGridCellComboBox();
virtual ~CGridCellComboBox();
DECLARE_SERIAL(CGridCellComboBox);
virtual void Serialize(CArchive& ar);
//在这个结构中要增加一个指针对象,这个指针对象可以用来创建需要显示的那个数组的
BOOL m_bAutoDelete; //是否自动删除内容指针对象中的数据
CStringArray* pAryLsh; //放置于nData中的内容数组指针
CStringArray* pAryData; //放置于ComboBox中的内容数组指针
};
class CGridCellDate : public CGridCellText
{
public:
CGridCellDate();
virtual ~CGridCellDate();
DECLARE_SERIAL(CGridCellDate);
virtual void Serialize(CArchive& ar);
};
class CGridCellDateTime : public CGridCellText
{
public:
CGridCellDateTime();
virtual ~CGridCellDateTime();
DECLARE_SERIAL(CGridCellDateTime);
virtual void Serialize(CArchive& ar);
};
class CGridCellTime : public CGridCellText
{
public:
CGridCellTime();
virtual ~CGridCellTime();
DECLARE_SERIAL(CGridCellTime);
virtual void Serialize(CArchive& ar);
};
#endif // !defined(AFX_GRIDCELLIMAGE_H__DCD35E64_609C_4322_A540_648051CFE441__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -