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.
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 Frame.h
|
|
//主要功能:
|
|
//
|
|
//程序编写: 2005-12-07
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
#include "insertdraw.h"
|
|
#include "rect8ex.h"
|
|
|
|
#define FRAME_BLACK_LINE 0x00000100 //边框为黑线
|
|
|
|
class AFX_EXT_CLASS CFrame : public CInsertDraw
|
|
{
|
|
public:
|
|
CFrame(void);
|
|
virtual ~CFrame(void);
|
|
|
|
double thickness;
|
|
|
|
public:
|
|
void operator =(CFrame &frame);
|
|
|
|
void Serialize(CArchive& ar, const short &ver) override;
|
|
virtual int Read(CFile &fr, const short& ver);
|
|
virtual void Write(CFile &fw, const short& ver);
|
|
virtual BOOL IsInRange(CRect8& range);
|
|
virtual bool GetRange(CRect8 &range);
|
|
virtual void ScaleCoor(double xs, double ys, double dx, double dy);
|
|
virtual void ScaleProperty(double sx, double sy);
|
|
|
|
virtual void WriteDML(CFile& fw, const short& ver, int nBaseTabNum);
|
|
virtual int ReadDML(CFile &fr, const short &ver);
|
|
|
|
virtual void WritePCG(CFile& fw, const short& ver, int nBaseTabNum);
|
|
virtual int ReadPCG(CFile &fr, const short &ver);
|
|
|
|
BOOL IsBlackLine(void);
|
|
void EnableBlackLine(BOOL bEnable);
|
|
double GetFrameWidth(void);
|
|
|
|
public:
|
|
virtual int ReadPCG(void *pxp, const short &ver);
|
|
};
|