gridcell.h

来自「一个完整的数字硬盘录像机系统软件」· C头文件 代码 · 共 38 行

H
38
字号
#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 + =
减小字号Ctrl + -
显示快捷键?