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

📄 dlgcomset.h

📁 本程序采用VC++和MySql编写的田间信息自动采集系统
💻 H
字号:
#if !defined(AFX_DLGCOMSET_H__F14604AC_1395_44F5_9C29_A529EBCF9006__INCLUDED_)
#define AFX_DLGCOMSET_H__F14604AC_1395_44F5_9C29_A529EBCF9006__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CDLGComSet dialog
#include "ComSetDM.h"
#include "CustResultSet.h"
#include "Tools.h"

#define WM_COM_SET	    WM_USER+2
#define WM_STOP_SET	    WM_USER+3
#define WM_DATA_SET	    WM_USER+4
#define WM_PARITY_SET	WM_USER+5
#define WM_HAND_SET	    WM_USER+6
#define WM_BAUND_SET	WM_USER+7

class CDLGComSet : public CDialog
{
// Construction
public:
	void SetWnd(HWND wnd);
	CDLGComSet(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDLGComSet)
	enum { IDD = IDD_DLG_COM };
	int		m_iBaudRate;
	int		m_iDataBit;
	int		m_iHand;
	int		m_iParity;
	int		m_Port;
	int		m_StopBit;
	//}}AFX_DATA


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

// Implementation
protected:
    
	// Generated message map functions
	//{{AFX_MSG(CDLGComSet)
	virtual BOOL OnInitDialog();
	afx_msg void OnBaudRate1200();
	afx_msg void OnBaudRate1400();
	afx_msg void OnBaudRate2400();
	afx_msg void OnBaudRate2880();
	afx_msg void OnBaudRate38400();
	afx_msg void OnBaudRate4800();
	afx_msg void OnBaudRate5600();
	afx_msg void OnBaudRate600();
	afx_msg void OnBaudRate9600();
	afx_msg void OnDataBit4();
	afx_msg void OnDataBit5();
	afx_msg void OnDataBit6();
	afx_msg void OnDataBit7();
	afx_msg void OnDataBit8();
	afx_msg void OnHandN();
	afx_msg void OnHandOF();
	afx_msg void OnHandRTS();
	afx_msg void OnHandRTSOF();
	afx_msg void OnParityE();
	afx_msg void OnParityM();
	afx_msg void OnParityN();
	afx_msg void OnParityO();
	afx_msg void OnParityS();
	afx_msg void OnPort1();
	afx_msg void OnPort2();
	afx_msg void OnPort3();
	afx_msg void OnPort4();
	afx_msg void OnStopBit1();
	afx_msg void OnStopBit11();
	afx_msg void OnStopBit2();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void UpdatePort(CString str);
	void UpdateParity(CString str);
	void UpdateDataBit(CString str);
	void UpdateHand(CString str);
	void UpdateBaudRate(CString str);
	void UpdateStopBit(CString str);
	CComSetDM m_cDM;
	CCustResultSet theResult;
	CTools Tools;
	HWND hWnd;
	CString		m_sBaudRate;
	CString		m_sDataBit;
	CString		m_sHand;
	CString		m_sParity;
	CString		m_sPort;
	CString		m_sStopBit;
};

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

#endif // !defined(AFX_DLGCOMSET_H__F14604AC_1395_44F5_9C29_A529EBCF9006__INCLUDED_)

⌨️ 快捷键说明

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