?? gkdlseries102dlg.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 + -