|
|
|
|
|
#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; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>߿<EFBFBD>
|
|
|
|
|
|
int borderThickness; //<2F>߿<EFBFBD><DFBF><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
int blackOutterBorder; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾΪ<CABE>ڱ߿<DAB1>
|
|
|
|
|
|
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; //<2F><><EFBFBD>ִ<EFBFBD>С
|
|
|
|
|
|
double m_dThickness; //<2F>߿<EFBFBD><DFBF><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
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); //<2F>ɶ<EFBFBD>ת<EFBFBD><D7AA>Ϊ<EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD>ʽ
|
|
|
|
|
|
void ToDegree(CRect8& rect); //<2F>ɶȷ<C9B6><C8B7><EFBFBD>ת<EFBFBD><D7AA>Ϊ<EFBFBD>ȸ<EFBFBD>ʽ
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
void CreateFrame(CNet* pNet);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
};
|