?? zhewanobj.h
字號(hào):
#pragma once
#include "figureobj.h"
class CZhewanTool;
class CZhewanObj :
public CFigureObj
{
protected:
DECLARE_SERIAL(CZhewanObj);
CZhewanObj(void);
public:
CZhewanObj(const CRect& position);
CZhewanObj(DrawObj drawObj);
virtual ~CZhewanObj(void);
//下面是實(shí)現(xiàn)函數(shù)
void SetPoint(int ptNumber, double x, double y);
void GetPoint(int ptNumber, double& x, double& y);
virtual CRect CalcBounds(CVisDrawView* pView);
//點(diǎn)point到直線nStartPt,nEndPt之間的距離
double PointToLine(CPoint nStartPt,CPoint nEndPt, CPoint pt);
//圖元被選擇判斷
BOOL IsSelected(CVisDrawView* pView, const CPoint& point);
virtual void Draw(CVisDrawView* pView, CDC* pDC);
virtual void Serialize(CArchive& ar);
//手柄操作函數(shù)
virtual int GetHandleCount();
virtual CPoint GetHandle(CVisDrawView* pView, int nHandle);
void MoveTo( CPoint delta, CVisDrawView* pView);
//CCheTool* pcObj;
int m_pic;
LONG m_width,m_height;
CBitmap bitmap;
//CRectTracker m_RectTracker;
// CRect m_RectLP;
CRect rect;
CZhewanTool* pToolObj;
private:
double m_pointx,m_pointy;
private:
//矩形坐標(biāo)點(diǎn)
double m_ltx, m_lty, m_rbx, m_rby;
};
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -