⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 turnoutview.h

📁 使用MFC实现一个小的动画功能
💻 H
字号:
// TurnOutView.h : interface of the CTurnOutView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TURNOUTVIEW_H__0D4079A1_5453_4F4B_8978_46DD5A2AC178__INCLUDED_)
#define AFX_TURNOUTVIEW_H__0D4079A1_5453_4F4B_8978_46DD5A2AC178__INCLUDED_

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


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

// Attributes
public:
	CTurnOutDoc* GetDocument();

// Operations
public:
	CPen *myPen1;
	int flag_color;
	int flag_T1_B,flag_T1_N;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTurnOutView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	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 ~CTurnOutView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

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

#ifndef _DEBUG  // debug version in TurnOutView.cpp
inline CTurnOutDoc* CTurnOutView::GetDocument()
   { return (CTurnOutDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_TURNOUTVIEW_H__0D4079A1_5453_4F4B_8978_46DD5A2AC178__INCLUDED_)

⌨️ 快捷键说明

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