📄 gridcell.h
字号:
#ifndef _GRID_CELL_H
#define _GRID_CELL_H
//////////////////////////////////////////////////////////////////////
//
///////////////////////////////////////////////////////////////////////
class CGridCell : public CObject
{
public:
CGridCell()
{
state = GVIS_NOSELECTED;
crBkClr = CLR_DEFAULT;
crFgClr = CLR_DEFAULT;
nValid=FALSE;
nFormat = 0;
szText.Empty();
iImage = -1;
lParam = 0;
nEditFormat=0;
}
//attrib
public:
UINT state; // Cell state (selected/focus etc)
int nValid;
COLORREF crBkClr; // Background colour (or CLR_DEFAULT)
COLORREF crFgClr; // Forground colour (or CLR_DEFAULT)
UINT nFormat; // Cell format
CString szText; // Cell text (or binary data if you wish...)
int iImage; // Index of the list view item抯 icon
LPARAM lParam; // 32-bit value to associate with item
LOGFONT lfFont; // Cell font
UINT nEditFormat;
};
// storage typedef for each row in the grid
typedef CTypedPtrArray<CObArray, CGridCell*> GRID_ROW;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -