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.
70 lines
1.6 KiB
C++
70 lines
1.6 KiB
C++
#pragma once
|
|
#include "itemframe.h"
|
|
|
|
namespace NItem
|
|
{
|
|
#pragma pack(1)
|
|
struct ItemEditNetData
|
|
{
|
|
ItemEditNetData()
|
|
:isShowOutBorder(0),
|
|
borderThickness(0),
|
|
blackOutterBorder(0),
|
|
borderColorR(0),
|
|
borderColorG(0),
|
|
borderColorB(0)
|
|
{}
|
|
int isShowOutBorder; //是否显示外边框
|
|
int borderThickness; //边框厚度
|
|
int blackOutterBorder; //是否显示为黑边框
|
|
int borderColorR;
|
|
int borderColorG;
|
|
int borderColorB;
|
|
};
|
|
#pragma pack()
|
|
|
|
class CItemEditNet : public CItemEditFrame
|
|
{
|
|
public:
|
|
CItemEditNet(CSigmaDoc * ppDoc);
|
|
virtual ~CItemEditNet(void);
|
|
|
|
virtual void DoLButtonUp(CDC* pDC);
|
|
bool ChangeSetting(ItemEditNetData * pData, CNet* pNet);
|
|
//virtual BOOL InitPropertyGrid(CXTPPropertyGrid& grid);
|
|
//virtual BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem);
|
|
|
|
//BOOL InitPropertyGrid(CXTPPropertyGrid& grid, CNet* pValue);
|
|
//BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem, CNet* pValue);
|
|
|
|
//BOOL OnGridItemChangeValue_Frame(CXTPPropertyGridItem* pItem, CNet* pNet);
|
|
//BOOL InitPropertyGrid_Frame(CXTPPropertyGrid& grid, CNet* pNet);
|
|
COLORREF m_colFrame = RGB(0, 0, 0);
|
|
BOOL m_bShowOutFrame = FALSE;
|
|
|
|
COLORREF color;
|
|
CNet* m_pNet;
|
|
|
|
protected:
|
|
int DisplayIdea;
|
|
int MarkText;
|
|
int TextFormat;
|
|
CSize8 m_szText; //文字大小
|
|
double m_dThickness; //边框厚度
|
|
CSize8 m_step;
|
|
|
|
void GetDisplayIdea(CNet* pValue);
|
|
void GetMarkText(CNet* pValue);
|
|
void SetDisplayIdea(CNet* pValue);
|
|
void SetMarkText(CNet* pValue);
|
|
void GetTextFormat(CNet* pValue);
|
|
void SetTextFormat(CNet* pValue);
|
|
|
|
void ToDMS(CRect8& rect); //由度转换为度分秒格式
|
|
void ToDegree(CRect8& rect); //由度分秒转换为度格式
|
|
|
|
public:
|
|
void CreateFrame(CNet* pNet);
|
|
};
|
|
|
|
}; |