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

📄 u2sdlg.h

📁 PDIUSBD12 开发板上位机程序 基于标准驱动
💻 H
字号:
// u2sDlg.h : header file
//

#if !defined(AFX_U2SDLG_H__835BEFB8_586E_4E6A_8770_46F6F7AD90A9__INCLUDED_)
#define AFX_U2SDLG_H__835BEFB8_586E_4E6A_8770_46F6F7AD90A9__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CU2sDlg dialog

class CU2sDlg;

struct CThreadParam {
	HANDLE hThread;
	CU2sDlg * u2sDlg;
	BOOLEAN bInThread;
	BOOLEAN bUpdate;
	UINT uiLength;
    char * pcIoBuffer;
	char pipe_name[20];
};


class CU2sDlg : public CDialog
{
// Construction
public:
	HANDLE hD12;
	CU2sDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CU2sDlg)
	enum { IDD = IDD_U2S_DIALOG };
	CButton	m_ctrlOnoff;
	CButton	m_ctrlTXData;
	CButton	m_ctrlClearTxd;
	CButton	m_ctrlClearEnp1;
	CEdit	m_ctrlRXDataENP1;
	CString	m_strRXDataENP1;
	CString	m_strTXData;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

CThreadParam  m_InterruptIn, m_GenericOut;

	// Generated message map functions
	//{{AFX_MSG(CU2sDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnButtonClears();
	afx_msg void OnButtonSend();
	afx_msg void OnButtonClearEnp1();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonStart();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

#endif // !defined(AFX_U2SDLG_H__835BEFB8_586E_4E6A_8770_46F6F7AD90A9__INCLUDED_)

⌨️ 快捷键说明

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