📄 processview.h
字号:
// ProcessView.h : interface of the CProcessView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PROCESSVIEW_H__41D54172_CFA3_418D_A83C_AFDA44C1E896__INCLUDED_)
#define AFX_PROCESSVIEW_H__41D54172_CFA3_418D_A83C_AFDA44C1E896__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"promoni.h"
#include<afxtempl.h>
#define N 10
class CProcessView : public CScrollView
{
protected: // create from serialization only
CProcessView();
DECLARE_DYNCREATE(CProcessView)
// Attributes
public:
CProcessDoc* GetDocument();
// Operations
public:
// struct DATA {int pri;int tm;};
// DATA m_data[N];
int m_pris[N]; //N 为进程最大个数
int m_times[N];
// int m_Timer;
// int m_line;
int m_proTotal; //进程实际总数
int n; //数组下标,指示当前读取的数组中第几个进程
bool m_killTimer; //是否删除了定时器
bool m_start; //是否开始
bool m_queryFlag; //是否应用了查询功能
int m_queryClock;
CProMoni m_proMoni;
PCB* CreatePCB();
// CArray<Data,Data> m_data;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CProcessView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CProcessView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CProcessView)
afx_msg void OnStart();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnDestroy();
afx_msg void OnUpdateStart(CCmdUI* pCmdUI);
afx_msg void OnContinue();
afx_msg void OnStop();
afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
afx_msg void OnUpdateContinue(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ProcessView.cpp
inline CProcessDoc* CProcessView::GetDocument()
{ return (CProcessDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PROCESSVIEW_H__41D54172_CFA3_418D_A83C_AFDA44C1E896__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -