?? 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 + -