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.

36 lines
1.2 KiB
C

#pragma once
#include "module.h"
#include "EnumPropertieType.h"
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD>Χ
class CWorkAreaMgr :public CModule
{
public:
CWorkAreaMgr(void);
~CWorkAreaMgr(void);
virtual MODULE GetModuleType(){return _WORK_AREA_PROP;};
virtual CMFCPropertyGridProperty *CreatGridProperty();
virtual void OnAppInitialize();
//<2F><>Ӧ<EFBFBD><D3A6><EFBFBD>Եĸı<C4B8>
virtual void OnPropertyChanged();
virtual void Draw(CDC* pDC);
DbRect GetWorkArea();
void SetbDrawWorkArea(bool b){m_bDrawWorkArea = b;};
bool IsPtInWorkArea(Dbxy pt);
private:
void RefrashWorkArea();
void DrawWorkArea(CDC* pDC);
private:
bool m_bDrawWorkArea;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ƹ<EFBFBD><C6B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
bool m_bCircle;//<2F>Ƿ<EFBFBD>ΪԲ<CEAA><D4B2>
bool m_bFrame;//<2F>Ƿ<EFBFBD>ֻ<EFBFBD><D6BB>ʾ<EFBFBD>߿<EFBFBD>
COLORREF m_WorkRectColor; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򷽿<EFBFBD><F2B7BDBF><EFBFBD>ɫ
Dbxy m_CenterPt;//<2F><>Χ<EFBFBD><CEA7><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>
DbSize m_WorkRectSize;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򷽿<EFBFBD><F2B7BDBF>ߴ<EFBFBD>
DbRect m_DbWorkRect;//<2F><EFBFBD>İ<EFBFBD>ȫ<EFBFBD>ӹ<EFBFBD><D3B9><EFBFBD>Χ,obj <20><><EFBFBD><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2>ܳ<EFBFBD><DCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Χ
};
extern CWorkAreaMgr *gWorkAreaMgr;