/////////////////////////////////////////////////////
//	wcGdtConstant.h
//	wkGdt 常量表
/////////////////////////////////////////////////////
#ifndef _WC_GDT_CONSTANT_H_
#define _WC_GDT_CONSTANT_H_

//GDT 表信息
#define wgTbRows 					 1		//gdt表行数
#define wgTbFixRows 				 2		
#define wgTbCols 					 3		//gdt表列数
#define wgTbFixCols					 4
#define wgTbFgColor 				 5
#define wgTbBkColor 				 6
#define wgTbRowHeight 				 7		//gdt表行高
#define wgTbColWidth 				 8		//列宽
#define wgTbReportHeadRow			 9 //表头的行数						
#define wgTbReportTrailRow          10 //表尾的行数	

////////////////////////////
//单元格信息
#define wgCellState 				 1		//状态
#define wgCellFormat  				 2		//格式
#define wgCellBkColor				 3
#define wgCellFgColor				 4
#define wgCellHeight				 5
#define wgCellWidth					 6
#define wgCellUserSet				 7		//set this cell by user:0-不需要外部设定，1-需要外部设定

//获取表、单元格字体
//LOGFONT参数如下
#define lfHeight					 1
#define lfWidth						 2
#define lfEscapement				 3
#define lfOrientation				 4
#define lfWeight					 5
#define lfItalic					 6
#define lfUnderline					 7
#define lfStrikeOut					 8
#define lfCharSet					 9
#define lfOutPrecision				 10
#define lfClipPrecision				 11
#define lfQuality					 12
#define lfPitchAndFamily			 13
#define lfFaceName					 14


// Cell states定义如下
#define GVIS_FOCUSED      	 0x0001
#define GVIS_SELECTED     	 0x0002
#define GVIS_DROPHILITED  	 0x0004
#define GVIS_READONLY     	 0x0008

// Cell format：定义如下
#define DT_TOP             	 0x00000000
#define DT_LEFT              0x00000000
#define DT_CENTER            0x00000001
#define DT_RIGHT             0x00000002
#define DT_VCENTER           0x00000004
#define DT_BOTTOM            0x00000008
#define DT_WORDBREAK         0x00000010
#define DT_SINGLELINE        0x00000020
#define DT_EXPANDTABS        0x00000040
#define DT_TABSTOP           0x00000080
#define DT_NOCLIP            0x00000100
#define DT_EXTERNALLEADING   0x00000200
#define DT_CALCRECT          0x00000400
#define DT_NOPREFIX          0x00000800
#define DT_INTERNAL          0x00001000
#define DT_EDITCONTROL       0x00002000
#define DT_PATH_ELLIPSIS     0x00004000
#define DT_END_ELLIPSIS      0x00008000
#define DT_MODIFYSTRING      0x00010000
#define DT_RTLREADING        0x00020000
#define DT_WORD_ELLIPSIS     0x00040000

//Cell nUserSet
#define USER_SET_ORI             0x00000001
#define USER_SET_FIRTROW         0x00000002
#define USER_SET_FIRLCOL         0x00000004
#define USER_SET_AROUND          0x00000008      //表示要画四边

#define USER_SET_TROW            0x00000010      //表示不要画上边
#define USER_SET_TROW_BORD       0x00000020
#define USER_SET_TROW_WIDE1      0x00000040
#define USER_SET_TROW_WIDE2      0x00000080
#define USER_SET_TROW_WIDE3      0x000000c0
#define USER_SET_TROW_CLEANPEN   0xffffff3f     // 0x000000f0
#define USER_SET_TROW_BOUNDARY   0x00100000

#define USER_SET_BROW            0x00000100      //表示不要画下边
#define USER_SET_BROW_BORD       0x00000200
#define USER_SET_BROW_WIDE1      0x00000400
#define USER_SET_BROW_WIDE2      0x00000800
#define USER_SET_BROW_WIDE3      0x00000c00
#define USER_SET_BROW_CLEANPEN   0xfffff3ff     //0x00000f00
#define USER_SET_BROW_BOUNDARY   0x00200000

#define USER_SET_LCOL            0x00001000      //表示不要画左边
#define USER_SET_LCOL_BORD       0x00002000
#define USER_SET_LCOL_WIDE1      0x00004000
#define USER_SET_LCOL_WIDE2      0x00008000
#define USER_SET_LCOL_WIDE3      0x0000c000
#define USER_SET_LCOL_CLEANPEN   0xffff3fff      //0x0000f000
#define USER_SET_LCOL_BOUNDARY   0x00400000

#define USER_SET_RCOL            0x00010000     //表示不要画右边
#define USER_SET_RCOL_BORD       0x00020000
#define USER_SET_RCOL_WIDE1      0x00040000
#define USER_SET_RCOL_WIDE2      0x00080000
#define USER_SET_RCOL_WIDE3      0x000c0000
#define USER_SET_RCOL_CLEANPEN   0xfff3ffff      //0x000f0000
#define USER_SET_RCOL_BOUNDARY   0x00800000
//////////////////////////////////////////



#endif //_WC_GDT_CONSTANT_H_