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

📄 gkdlseries102dlg.h

📁 102规约事例
💻 H
字号:
// GKDLSeries102Dlg.h : header file
//

#if !defined(AFX_GKDLSERIES102DLG_H__48241E99_CC38_4B10_9EEB_103C3A7583B5__INCLUDED_)
#define AFX_GKDLSERIES102DLG_H__48241E99_CC38_4B10_9EEB_103C3A7583B5__INCLUDED_

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

#include "LinkFailNotice.h"
#include "My102Class.h"

/////////////////////////////////////////////////////////////////////////////
// CGKDLSeries102Dlg dialog

class CGKDLSeries102Dlg : public CDialog
{
// Construction
public:
	CGKDLSeries102Dlg(CWnd* pParent = NULL);	// standard constructor	
private:		
	void ReadConfig(void);		
	int GetValueFromData(BYTE*retData, int *length);
	int WriteDataToFl();    

// Dialog Data
	//{{AFX_DATA(CGKDLSeries102Dlg)
	enum { IDD = IDD_GKDLSERIES102_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGKDLSeries102Dlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	int nElapse;            //数据采集间隔	
	int nSleep;             //发送与接收数据的间隔
	int nPort;              //串口号
	int nBaud;              //波特率                 
	int nBit;               //数据位  
	int nStop;              //停止位
	int nParity;            //校验方式

	CLinkFailNotice *myFailNotice;//连接失败提示对话框指针
	CMy102Class     my102Class;   //102规约封装类的对象
	BOOL bFailDlgShow;            //失败对话框是否显示	

	char m_sPointName[50][50];    //保存关口电量测点名称	
	int  m_nPointCount;           //保存关口电量测点数量	
	float  m_fPointValue[50];     //保存关口电量测点值,32个

	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CGKDLSeries102Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTimer(UINT nIDEvent);
	/*
	afx_msg void OnBtnReadconfig();
	afx_msg void OnBtnSetport();
	afx_msg void OnBtnSend();
	afx_msg void OnBtnReceive();
	afx_msg void OnBtnReadset();	
	afx_msg void OnBtnCloseport();
	*/
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_GKDLSERIES102DLG_H__48241E99_CC38_4B10_9EEB_103C3A7583B5__INCLUDED_)

⌨️ 快捷键说明

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