You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
#pragma once
|
|
#include "itemnet.h"
|
|
|
|
namespace NItem
|
|
{
|
|
#pragma pack(1)
|
|
struct RectangularCSGridData
|
|
{
|
|
int showMode; //曲线=0 交点=1 空=2
|
|
double stepX; //网格步长
|
|
double stepY; //网格步长
|
|
int girdColorR;
|
|
int girdColorG;
|
|
int girdColorB;
|
|
int textHeight;
|
|
int textScale; //地理 = 0, 数学=1, 地理1=2, 地理2全部=3
|
|
int notatioinMode; //所有边=0, 左边上边=1,上边右边=2,右边下边=3,下边左边=4
|
|
double baseX; //基数x
|
|
double baseY; //基数y
|
|
double coefficientX; //系数x
|
|
double coefficientY; //系数y
|
|
double left; //坐标范围左
|
|
double top; //坐标范围上
|
|
double right; //坐标范围右
|
|
double bottom; //坐标范围底
|
|
int isShowOutBorder; //是否显示外边框
|
|
int borderThickness; //边框厚度
|
|
int blackOutterBorder; //是否显示为黑边框
|
|
int borderColorR;
|
|
int borderColorG;
|
|
int borderColorB;
|
|
};
|
|
#pragma pack()
|
|
|
|
class CItemEditGrid : public CItemEditNet
|
|
{
|
|
public:
|
|
CItemEditGrid(CSigmaDoc * ppDoc);
|
|
virtual ~CItemEditGrid(void);
|
|
//必须在绘制完矩形后,鼠标抬起时调用此函数
|
|
int GetStepAndRange(RectangularCSGridData * pData);
|
|
int Create(RectangularCSGridData * pData, CDC* pDC);
|
|
void DoLButtonUp(CDC* pDC) override;
|
|
void OnDraw(CXyDC* pDC) override;
|
|
//virtual BOOL InitPropertyGrid(CXTPPropertyGrid& grid);
|
|
//virtual BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem);
|
|
|
|
//BOOL InitPropertyGrid(CXTPPropertyGrid& grid, CGridding* pValue);
|
|
//BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem, CGridding* pValue);
|
|
private:
|
|
CGridding* m_pGrid;
|
|
};
|
|
|
|
}; |