BlueFlashToolDlg.h
2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// BlueFlashToolDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "afxwin.h"
//}}AFX_INCLUDES
#if !defined(AFX_BLUEFLASHTOOLDLG_H__DE44DC07_CA43_417C_A12F_149A2C736BB5__INCLUDED_)
#define AFX_BLUEFLASHTOOLDLG_H__DE44DC07_CA43_417C_A12F_149A2C736BB5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CBlueFlashToolDlg dialog
class CBlueFlashToolDlg : public CDialog
{
// Construction
public:
void UpdateGroupsCaptions();
CBlueFlashToolDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CBlueFlashToolDlg)
enum { IDD = IDD_BLUEFLASHTOOL_DIALOG };
CMSComm mycom_debug;
CMSComm mycom01;
CMSComm mycom02;
CMSComm mycom03;
CMSComm mycom04;
CMSComm mycom05;
CMSComm mycom06;
CMSComm mycom07;
CMSComm mycom08;
CMSComm mycom09;
CMSComm mycom10;
CMSComm mycom11;
CMSComm mycom12;
CMSComm mycom13;
CMSComm mycom14;
CMSComm mycom15;
CMSComm mycom16;
CMSComm mycom17;
CMSComm mycom18;
CMSComm mycom19;
CMSComm mycom20;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBlueFlashToolDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CBlueFlashToolDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSetting();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
DECLARE_EVENTSINK_MAP()
void OnCommMscommDebug();
afx_msg void OnBnClickedButtonInitComport();
afx_msg void OnBnClickedCheckEarUsb();
//耳机多选框指针
CButton *pcheckButton[BLUE_TYPE_MAX][10];
//USB多选框指针
//CButton *pcheckButtonUsb[10];
//耳机下载按钮指针
CButton *pButton[BLUE_TYPE_MAX][10];
//USB下载按钮指针
//CButton *pButtonUsb[10];
//SN显示框
CStatic *pStaticSn[10];
//待写入的SN号
int mySN_readwrite[10];
//控件指针
CMSComm *pctrlMSComm[BLUE_TYPE_MAX][10];
CFile myBinFile[BLUE_TYPE_MAX][10];
BYTE *myBufferOfBin[BLUE_TYPE_MAX][10];
afx_msg void OnBnClickedButtonStartUsbEar();
afx_msg void OnBnClickedCheckEarUsbAll();
CListBox mylistDebugInfo;
CButton mycheckEarAll;
CButton mycheckUsbAll;
afx_msg void OnDestroy();
// 打开COM口,
bool OpenComport(BLUE_DEVICE_TYPE earOrUsb, int index);
int DBG_print(const char * strMsg, ...);
void OnCommMscomm1();
bool SendFileToComPort(BLUE_DEVICE_TYPE earOrUsb, int index);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BLUEFLASHTOOLDLG_H__DE44DC07_CA43_417C_A12F_149A2C736BB5__INCLUDED_)