?? fivepointview.h
字號:
// FivePointView.h : interface of the CFivePointView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_FIVEPOINTVIEW_H__C7C98BAD_43E9_4DC2_85F2_1F1F659EB41D__INCLUDED_)
#define AFX_FIVEPOINTVIEW_H__C7C98BAD_43E9_4DC2_85F2_1F1F659EB41D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <list>
#include "Mypoint.h"
using namespace std;
class CFivePointView : public CView
{
protected: // create from serialization only
CFivePointView();
DECLARE_DYNCREATE(CFivePointView)
// Attributes
public:
CFivePointDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFivePointView)
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:
double getsin(int i);
double getcos(int i);
void getab(int i);
virtual ~CFivePointView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
int pointnum;
double a[4];
double b[4];
double m[20];
double n[20];
double x[20];
double y[20];
bool m_flag;
bool m_isbegin;
list<CMypoint> Plist;
COLORREF m_color;
CBrush m_brush;
//{{AFX_MSG(CFivePointView)
afx_msg void OnPDraw();
afx_msg void OnPFlat();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in FivePointView.cpp
inline CFivePointDoc* CFivePointView::GetDocument()
{ return (CFivePointDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FIVEPOINTVIEW_H__C7C98BAD_43E9_4DC2_85F2_1F1F659EB41D__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -