irqdlg.h

来自「这个也是我们的毕业设计课题」· C头文件 代码 · 共 86 行

H
86
字号
#if !defined(AFX_IRQDLG_H__DB5B37C3_8A6F_434F_969F_E77C7E77B347__INCLUDED_)
#define AFX_IRQDLG_H__DB5B37C3_8A6F_434F_969F_E77C7E77B347__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// IRQDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CIRQDlg dialog

class CIRQDlg : public CDialog
{
// Construction
public:
	BYTE GetReqBit();
	BOOL GetIRQState();
	void DeleteStr(CString str);
	void SetReqBit(BYTE bReqBit);
	UINT GetCurIRQNum();
	void ReportHandleState(CString strState);
	void DetachFromCPU();
	void AttachToCPU(CPU* pCPU);
	void Determine();
	CIRQDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CIRQDlg)
	enum { IDD = IDD_IRQ };
	CListBox	m_listIRQ;
	CString	m_strIRQNum;
	CString	m_strSender;
	int		m_irq8;
	int		m_irq7;
	int		m_irq6;
	int		m_irq5;
	int		m_irq4;
	int		m_irq3;
	int		m_irq2;
	int		m_irq1;
	CString	m_strHandleState;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CIRQDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void OnCancel();

	// Generated message map functions
	//{{AFX_MSG(CIRQDlg)
	afx_msg void OnClose();
	virtual BOOL OnInitDialog();
	afx_msg void OnIrq1();
	afx_msg void OnIrq2();
	afx_msg void OnIrq3();
	afx_msg void OnIrq4();
	afx_msg void OnIrq5();
	afx_msg void OnIrq6();
	afx_msg void OnIrq7();
	afx_msg void OnIrq8();
	afx_msg void OnRequest();
	afx_msg void OnAttach();
	afx_msg void OnDetach();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BYTE m_bReqBit;//keep the request information
	CPU* _cpu;
	UINT m_uCurIRQNum;
};

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

#endif // !defined(AFX_IRQDLG_H__DB5B37C3_8A6F_434F_969F_E77C7E77B347__INCLUDED_)

⌨️ 快捷键说明

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