📄 switchboxview.h
字号:
// SwitchBoxView.h : interface of the CSwitchBoxView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SWITCHBOXVIEW_H__A7B94411_1A0B_4198_8110_D0F3430EF315__INCLUDED_)
#define AFX_SWITCHBOXVIEW_H__A7B94411_1A0B_4198_8110_D0F3430EF315__INCLUDED_
#include "mysource.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////
#define ID_BT_BEGIN 8888
#define ID_BT_PAUSE 8889
#define ID_BT_END 8890
#define ID_BT_ACCELERATE 8891
#define ID_BT_DECELERATE 8892
#define ID_BT_INPUT 8893
#define ID_BT_TIMESET 8894
/////////////////////////////////
class CSwitchBoxView : public CView
{
protected: // create from serialization only
CSwitchBoxView();
DECLARE_DYNCREATE(CSwitchBoxView)
// Attributes
public:
CSwitchBoxDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSwitchBoxView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CBitmapButton m_btnBegin;
CBitmapButton m_btnPause;
CBitmapButton m_btnEnd;
CBitmapButton m_btnAccelerate;
CBitmapButton m_btnDecelerate;
CButton m_btnInput;
CButton m_btnTimeSet;
CBitmap m_Background;
int tempStep;
bool m_bEnd;
bool m_bPause;
bool m_bBegin;
int m_Step;
CTimeSet m_TimeSet;
CInputDlg m_InputDlg;
CSeqStack switchbox;
clock_t m_tFinish;
clock_t m_tStart;
CPoint m_point2;
CPoint m_point1;
int m_Arr[100];
int m_nRight;
int m_nLeft;
int m_nDown;
int m_nUp;
int m_nNum;
void MyDrawLine(CDC *pDC, int num_a, int num_b);
virtual ~CSwitchBoxView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSwitchBoxView)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnInput();
afx_msg void OnSettime();
afx_msg void OnBegin();
afx_msg void OnPause();
afx_msg void OnEnd();
afx_msg void OnAccelerate();
afx_msg void OnDecelerate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in SwitchBoxView.cpp
inline CSwitchBoxDoc* CSwitchBoxView::GetDocument()
{ return (CSwitchBoxDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SWITCHBOXVIEW_H__A7B94411_1A0B_4198_8110_D0F3430EF315__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -