📄 myrect.h
字号:
// MyRect.h: interface for the CMyRect class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_MYRECT_H__363F2225_FB23_11D2_B2E0_9F9E918D2855__INCLUDED_)#define AFX_MYRECT_H__363F2225_FB23_11D2_B2E0_9F9E918D2855__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000#include "Shape.h"class CMyRect : public CShape { //attributesprivate:
// int MouseStyleNoChange;public:
CRect m_tRect;//public for copy using,other condition no use. void SetRect(CPoint& pt1,CPoint& pt2); void Draw(CDC* pDC); BOOL IsRectEmpty() { return m_tRect.IsRectEmpty(); } //constructors and destructorspublic: BOOL PtInEdge(CPoint &pt);
void DrawEdge(CDC *pDC);
void UpdateProp(int sel);
void InitProp();
void invalid(CGeditorView *pView);
void CalForRot(CPoint &pt);
void Mirror(int syd,CDC *pDC,CPoint &basept,CGeditorView* pView);
void rotate(int rsel,CDC *pDC,CPoint pt, CGeditorView *pView);
CShape * copys(TCHAR &ch);
int InTest(CPoint pt);
int RotateNoInit;
void dragobj(int leash,CDC *pDC,CPoint point,CGeditorView* pView);
void Serialize(CArchive& ar); CMyRect(); CMyRect(CPoint& pt1,CPoint& pt2); virtual ~CMyRect();#ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const;#endifprotected: DECLARE_SERIAL(CMyRect)};#endif // !defined(AFX_MYRECT_H__363F2225_FB23_11D2_B2E0_9F9E918D2855__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -