⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.h

📁 这个也是我们的毕业设计课题
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__7F36758D_ACBA_4D58_A8DE_FBCB2ED6B0BC__INCLUDED_)
#define AFX_MAINFRM_H__7F36758D_ACBA_4D58_A8DE_FBCB2ED6B0BC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//the follow declared classes will be used
class COutputWindow;
class CMemoryDlg;
class CStackDlg;
class CVariableDlg;
class CRegisterDlg;
class CIRQDlg;
class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	COutputWindow* m_pWndOutputWindow;//point to the outputwindow
	CMemoryDlg* m_pMemoryDlg;//used to view the memory
	CStackDlg* m_pStackDlg;//used to view the stack
	CVariableDlg* m_pVariableDlg;//used to view the variable
	CRegisterDlg* m_pRegisterDlg;//used to view the register
	CIRQDlg* m_pIRQDlg;
	BOOL m_bShowOutputWindow;//show the outputwindow if the value is TRUE
						//otherwisw hide the outputwindow
//operation
	//attribute
public:
	CIRQDlg* GetIRQDlg(){return m_pIRQDlg;}
	//get the pointer of outputwindow 
	COutputWindow* GetOutputWindow(){return m_pWndOutputWindow;}
	//get the pointer of outputDlg
	CMemoryDlg* GetMemoryDlg(){return m_pMemoryDlg;}
	//get the pointer of stackDlg
	CStackDlg* GetStackDlg(){return m_pStackDlg;}
	//get the pointer of variableDlg
	CVariableDlg* GetVariableDlg(){return m_pVariableDlg;}
	//get the pointer of registerDlg
	CRegisterDlg* GetRegisterDlg(){return m_pRegisterDlg;}

	void SetIRQDlg(CIRQDlg* pIRQDlg){m_pIRQDlg=pIRQDlg;}
	//set the pointer of outputwindow
	void SetOutputWindow(COutputWindow* lpOutputWindow)
	{m_pWndOutputWindow=lpOutputWindow;}
	//set the pointer of memoryDlg
	void SetMemoryDlg(CMemoryDlg* lpMemoryDlg)
	{m_pMemoryDlg=lpMemoryDlg;}
	//set the pointer of stackDlg
	void SetStackDlg(CStackDlg* lpStackDlg)
	{m_pStackDlg=lpStackDlg;}
	//set the pointer of variableDlg
	void SetVariableDlg(CVariableDlg* lpVariableDlg)
	{m_pVariableDlg=lpVariableDlg;}
	//set the pointer of registerDlg
	void SetRegisterDlg(CRegisterDlg* lpRegisterDlg)
	{m_pRegisterDlg=lpRegisterDlg;}

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnUpdateViewOutput(CCmdUI* pCmdUI);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	afx_msg void OnViewOutput();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__7F36758D_ACBA_4D58_A8DE_FBCB2ED6B0BC__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -