📄 蓄电池充放电检测系统dlg.h
字号:
// 蓄电池充放电检测系统Dlg.h : header file
//
#if !defined(AFX_DLG_H__BEDDAE78_02F6_49DA_B8E1_6AB4DF0D66C8__INCLUDED_)
#define AFX_DLG_H__BEDDAE78_02F6_49DA_B8E1_6AB4DF0D66C8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
#include "MatrixStatic.h"
#include "scope.h"
#include "SerialPort.h" //添加CSerailPort类的头文件
#include "TrueColorToolBar.h"
#include "time.h"
class CMyDlg : public CDialog
{
// Construction
public:
int js1,js2,js3;
void DataProcessTemp(BYTE m_Inbuff[]);
//CFile m_fileSave;
int SaveBitmapToFile(HBITMAP hBitmap, LPSTR lpFileName);
HBITMAP CopyScreenToBitmap(LPRECT lpRect);
CMenu m_Menu;
bool winbz;
byte flag;
bool jsbz;
unsigned char ljbz;//链接标志
int nPort;
UINT oldhour;
UINT oldmin;
UINT oldsecond;
unsigned char oldbz;
CString GetExcelDriver();
void SendNMEAData(CString &strData);
CSerialPort m_SerialPort; //CSerailPort类对象,串口1
BOOL m_bSerialPortOpened; //标志串口是否打开
unsigned short m_unPort; //记录串口的串口号
unsigned char m_strPortRXData[10]; //用于储存串口收到的数据
unsigned char m_strChecksum; //用于串口2接收数据计算校验值
unsigned char js;//用于对接收的数据进行计数
CMyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_MY_DIALOG };
Cscope m_scope;
CMatrixStatic m_clock;
//CComboBox m_ctrlComboComPort;
CMatrixStatic m_lcdv;
CMatrixStatic m_lcdah;
CMatrixStatic m_lcda;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg LONG OnComm(WPARAM ch, LPARAM port);
afx_msg void OnButton2();
virtual void OnCancel();
afx_msg void OnButton4();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnButton1();
afx_msg void OnButton5();
afx_msg void OnClose();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnDestroy();
afx_msg void OnButton6();
afx_msg void OnSelchangeCombo1();
afx_msg void OnSelendokCombo1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_H__BEDDAE78_02F6_49DA_B8E1_6AB4DF0D66C8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -