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

📄 dialog.h

📁 使用VC6开发 通过并口操作IIC 使用winio驱动操作并口
💻 H
字号:
// $$root$$Dlg.h : header file
//

#if !defined(AFX_IICDLG_H__733B9423_7DD2_4EAD_860C_1AA3A90BD23E__INCLUDED_)
#define AFX_IICDLG_H__733B9423_7DD2_4EAD_860C_1AA3A90BD23E__INCLUDED_

#include "MyData.h"	// Added by ClassView
#include "parallel.h"	// Added by ClassView
#include "RegList.h"
#include "BitButton.h"
#include "HexEdit.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// C$$Safe_root$$Dlg dialog

class C$$Safe_root$$Dlg : public CDialog
{
// Construction
public:
	void ShowBusState();
	bool m_bBusReady;
	bool m_bSendAll;
	int m_iReadLines;
	BYTE m_iIICAddrDeafault;
	CBitButton* pBit[8];
	CString m_FileName;
	void SendRowData(int row);
	BOOL StrToVal(CString str,BYTE& val);
	void SaveRegValue(BYTE val);
	void SelectRow(int row);
	C$$Safe_root$$Dlg(CWnd* pParent = NULL);	// standard constructor
// Dialog Data
	//{{AFX_DATA(C$$Safe_root$$Dlg)
	enum { IDD = IDD_$$SAFE_ROOT$$_DIALOG };
	HexEdit	m_tmpLine;
	CEdit	m_ReadBytes;
	CSpinButtonCtrl	m_spin1;
	CEdit	m_ReadLog;
	CEdit	m_WriteLog;
	CBitButton	m_bit7;
	CBitButton	m_bit6;
	CBitButton	m_bit5;
	CBitButton	m_bit4;
	CBitButton	m_bit3;
	CBitButton	m_bit2;
	CBitButton	m_bit1;
	CBitButton	m_bit0;
	CScrollBar	m_scroll;
	CRegList	m_list;
	CString	m_strRegName;
	CString	m_strIICAddr;
	CString	m_strRegAddr;
	CString	m_strRegValue;
	CString	m_strNote;
	BOOL	m_bHex;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(C$$Safe_root$$Dlg)
	public:
	virtual BOOL DestroyWindow();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(C$$Safe_root$$Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMenuFileSave();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnClickList4(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKeydownList4(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnCheck9();
	afx_msg void OnMenuFileOpen();
	afx_msg void OnEndlabeleditList4(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnChangeEditIicAddr();
	afx_msg void OnChangeEditNote();
	afx_msg void OnChangeEditRegAddr();
	afx_msg void OnChangeEditRegName();
	afx_msg void OnChangeEditRegValue();
	virtual void OnOK();
	afx_msg void OnMenuFileSaveAs();
	afx_msg void OnMenuHelp();
	afx_msg void OnMenuExit();
	afx_msg void OnBit0();
	afx_msg void OnButton2();
	afx_msg void OnClearWriteLog();
	afx_msg void OnClearReadLog();
	afx_msg void OnMenuFileOpenIml();
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonDelete();
	afx_msg void OnButtonTx();
	afx_msg void OnButtonSave();
	afx_msg void OnButtonTxRx();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnTrackList4(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void WriteFileHead(CStdioFile& file);
	int m_iWriteLines;
	int m_iScrollRow;
	void ResetBit();
	void ShowValue();
	BYTE m_iRegValue;
	BYTE m_iRegAddr;
	BYTE m_iIICAddr;
	parallel* pPort;
};

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

#endif // !defined(AFX_IICDLG_H__733B9423_7DD2_4EAD_860C_1AA3A90BD23E__INCLUDED_)

⌨️ 快捷键说明

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