turnoutview.h

来自「使用MFC实现一个小的动画功能」· C头文件 代码 · 共 73 行

H
73
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?