📄 myvc2view.h
字号:
// MyVC2View.h : interface of the CMyVC2View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYVC2VIEW_H__29145022_79EA_445B_850C_E8F8C614DFC6__INCLUDED_)
#define AFX_MYVC2VIEW_H__29145022_79EA_445B_850C_E8F8C614DFC6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMyVC2View : public CView
{
protected: // create from serialization only
CMyVC2View();
DECLARE_DYNCREATE(CMyVC2View)
// Attributes
public:
CMyVC2Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyVC2View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyVC2View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
//下列为定义各绘图函数
void FillRect0(CDC *pDC,COLORREF col,CPoint point,int chd,int kd);
void Rectangle0(CDC *pDC,int x1,int y1,int x2,int y2,COLORREF col);
void Line0(CDC *pDC,int x1,int y1,int x2,int y2,int siwid,COLORREF sicol);
void Ellipses(CDC *pDC,int x1,int y1,int x2,int y2,int w,COLORREF col,BOOL mb);
void Arc0(CDC *pDC,int xo,int yo,int Rre,int ew,COLORREF ecol);
void Ellipsem(CDC *pDC,int xo,int yo,int Rre,COLORREF eicol);
void Arcl(CDC *pDC,int xo,int yo,int re,double Ro,double Rd,int w,COLORREF col);
void Polygon0(CDC *pDC,int xo,int yo,COLORREF col);
// Generated message map functions
protected:
//{{AFX_MSG(CMyVC2View)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MyVC2View.cpp
inline CMyVC2Doc* CMyVC2View::GetDocument()
{ return (CMyVC2Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYVC2VIEW_H__29145022_79EA_445B_850C_E8F8C614DFC6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -