daoli2view.h

来自「用几种规则控制倒立摆的模糊运动的程序」· C头文件 代码 · 共 81 行

H
81
字号
// DAOLI2View.h : interface of the CDAOLI2View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DAOLI2VIEW_H__107FCEF1_45E0_11D5_BFB8_0080AD3A53F1__INCLUDED_)
#define AFX_DAOLI2VIEW_H__107FCEF1_45E0_11D5_BFB8_0080AD3A53F1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CDAOLI2View : public CView
{
protected: // create from serialization only
	CDAOLI2View();
	DECLARE_DYNCREATE(CDAOLI2View)

// Attributes
public:
//	CDAOLI2Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDAOLI2View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	void GetcarF();
	bool bsettimer;
	double dpaiAngle;
	double dcarF;
	int nCarx;
	double dVpolespeed;
	double dVpoleangle;
	int poleLength;
	bool bViewRules[11];
	CPen  blackPen,grayPen;
	CBrush dkgrayBrush,blackBrush,ltgrayBrush;

	virtual ~CDAOLI2View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDAOLI2View)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//#ifndef _DEBUG  // debug version in DAOLI2View.cpp
//inline CDAOLI2Doc* CDAOLI2View::GetDocument()
//   { return (CDAOLI2Doc*)m_pDocument; }
//#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DAOLI2VIEW_H__107FCEF1_45E0_11D5_BFB8_0080AD3A53F1__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?