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.

60 lines
1.1 KiB
C

1 month ago
#ifndef COMMONDATADEF_H
#define COMMONDATADEF_H
#pragma once
#include "NGraphExtend.h"
class AFX_EXT_CLASS CCommonDataDef
{
public:
CCommonDataDef();
~CCommonDataDef();
void operator=(CCommonDataDef& object);
CString m_strDepthMode;
CString m_strDisplayMode;
int m_Cols;
int m_Rows;
BOOL m_bAverageWidth;
public:
void CaculateRowsCols();
void Serialize(CArchive& ar, const short& ver);
void ResetDataItems(int count);
void ClearItems();
public:
typedef struct AFX_EXT_CLASS CCommonDataItem
{
CCommonDataItem();
CString strColName;
CString showContent;
CString textRect;
CString symbolRect;
NGraph::GDFLOGFONTEXT logfont;
int ColType;// =1,int, =2,double ,=3,text
DWORD m_nTrackInFlags;
double m_widthScale;
BOOL IsShowSymbol();
void SetShowSymbol(BOOL bFlag);
BOOL IsShowText();
void SetShowText(BOOL bFlag);
BOOL IsShowColorRect();
void SetShowColorRect(BOOL bFlag);
} COMMONDATAITEM;
std::vector<COMMONDATAITEM*> m_CommonDataItems;
protected:
enum TrackInLayerFlags
{
TrackInFlagSymbol = 0x0001, // <20><><EFBFBD>Ʒ<EFBFBD><C6B7><EFBFBD>
TrackInFlagText = 0x0002, //<2F><><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
TrackInColor = 0x0004 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB>
};
};
#endif