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

📄 fx2ndlg.h

📁 三菱PLC与PC通讯程序
💻 H
字号:
// FX2nDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_FX2NDLG_H__0166E5DA_1F99_421A_8B49_3A7A342E125C__INCLUDED_)
#define AFX_FX2NDLG_H__0166E5DA_1F99_421A_8B49_3A7A342E125C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CFX2nDlg dialog

class CFX2nDlg : public CDialog
{
// Construction
public:
	void valueAscii24bit(BYTE *data,int i);
	void HexToDec(CString str,int *i);
	void valueAscii(BYTE *data,int i);
	void Ascii3(BYTE *datades,BYTE *datascr,int len);
	void Ascii2(BYTE *data,int i);
	void Ascii(BYTE *data,int i);
	CFX2nDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFX2nDlg)
	enum { IDD = IDD_FX2N_DIALOG };
	CMSComm	m_com;
	int		m_word;
	int		m_address;
	int		m_wordnum;
	int		m_addressbit;
	CString	m_str;
	BOOL	m_hex;
	int		m_bit;
	int		m_comnum;
	BOOL	m_BIT;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFX2nDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFX2nDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnOnCommMscomm1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton5();
	afx_msg void OnRadio8();
	afx_msg void OnButton6();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FX2NDLG_H__0166E5DA_1F99_421A_8B49_3A7A342E125C__INCLUDED_)

⌨️ 快捷键说明

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