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

📄 serialdlg.h

📁 华中科技大学计算机学院接口课程设计.vc制作,上位机下位机模拟商场贵宾卡系统.使用access数据库.
💻 H
字号:
// SerialDlg.h : header file
//

#if !defined(AFX_SERIALDLG_H__18D9AE5B_C0C9_414C_9BDD_FAB924CA0C22__INCLUDED_)
#define AFX_SERIALDLG_H__18D9AE5B_C0C9_414C_9BDD_FAB924CA0C22__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSerialDlg dialog

class CSerialDlg : public CDialog
{
// Construction
public:
	//wxf
	char moneyreceive[7];
	CSerialDlg(CWnd* pParent = NULL);	// standard constructor

	bool working;

	int iBaudrate;	//波特率
	int iDataBits;	//数据位
	int iParity;	//校位验
	int iStopBits;	//停止位

	int iTextLengthOld ;
	int iTextLengthNew ;

	TCHAR tchSend ;
	char chSend ;
	static TCHAR tchReceive ;
	static char chReceive ;

	time_t tFirst, tSecond ;
	CWnd* pWndSend ;
	CWnd* pWndReceive ;

	static UINT Receiving(LPVOID );
	VOID OnReceive();

// Dialog Data
	//{{AFX_DATA(CSerialDlg)
	enum { IDD = IDD_SERIAL_DIALOG };
	CButton	m_0;
	CButton	m_sub;
	CButton	m_point;
	CButton	m_clear;
	CButton	m_add;
	CButton	m_9;
	CButton	m_8;
	CButton	m_7;
	CButton	m_6;
	CButton	m_5;
	CButton	m_4;
	CButton	m_3;
	CButton	m_2;
	CButton	m_1;
	CButton	m_idout;
	CButton	m_idbutton;
	CEdit	m_ctrlEditSend;
	CButton	m_IDCANCEL;
	CButton	m_IDOK;
	CString	m_strSend;
	CString	m_disp;
	CString	m_mony;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	CString m_strMessage;
	int m_IndexNum;

	// Generated message map functions
	//{{AFX_MSG(CSerialDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnChangeEditSend();
	afx_msg void OnButton();
	afx_msg void OnIDout();
	afx_msg void Onadd();
	afx_msg void Onsub();
	afx_msg void On1();
	afx_msg void On2();
	afx_msg void On3();
	afx_msg void On4();
	afx_msg void On5();
	afx_msg void On6();
	afx_msg void On7();
	afx_msg void On8();
	afx_msg void On9();
	afx_msg void On0();
	afx_msg void Onpoint();
	afx_msg void Onc();
	afx_msg void OnButton1();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SERIALDLG_H__18D9AE5B_C0C9_414C_9BDD_FAB924CA0C22__INCLUDED_)

⌨️ 快捷键说明

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