MemPage2.h
资源名称:OSDemo [点击查看]
上传用户:tianjwyx
上传日期:2007-01-13
资源大小:813k
文件大小:1k
源码类别:
操作系统开发
开发平台:
Visual C++
- #if !defined(AFX_MEMPAGE2_H__A234AE51_676C_4C2E_A760_B1CD2ED73D30__INCLUDED_)
- #define AFX_MEMPAGE2_H__A234AE51_676C_4C2E_A760_B1CD2ED73D30__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MemPage2.h : header file
- //
- #include "Math.h"
- #include ".GraphGraph.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMemPage2 dialog
- struct POTS
- {
- int rate;
- };
- class CMemPage2 : public CDialog
- {
- // Construction
- public:
- void Draw3dLine();
- CMemPage2(CWnd* pParent = NULL); // standard constructor
- bool bDraw;
- void DrawText(int x, int y, CString Text);
- void InitGrah();
- CGraph* testGraph;
- BOOL graphComplete;
- CArray<POTS,POTS>potFIFO;
- CArray<POTS,POTS>potOPT;
- CArray<POTS,POTS>potLRU;
- // Dialog Data
- //{{AFX_DATA(CMemPage2)
- enum { IDD = IDD_TAB_PAGE2 };
- CStatic m_Draw;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMemPage2)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CMemPage2)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MEMPAGE2_H__A234AE51_676C_4C2E_A760_B1CD2ED73D30__INCLUDED_)