SN WriterDlg.h
3.61 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// SN WriterDlg.h : header file
//
#if !defined(AFX_SNWRITERDLG_H__29A5423E_BA01_4A1E_BECC_1C25DBDFAC45__INCLUDED_)
#define AFX_SNWRITERDLG_H__29A5423E_BA01_4A1E_BECC_1C25DBDFAC45__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CSNWriterDlg dialog
#define _BITMAP_BTN_
//#undef _BITMAP_BTN_
#include "FPexc.h"
#include "SPexc.h"
//#include "ShadeButtonST.h"
class CSNWriterDlg : public CDialog
{
// Construction
public:
CSNWriterDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSNWriterDlg)
enum { IDD = IDD_SNWRITER_DIALOG };
CEdit myctrlscan2;
CEdit myctrlscan1;
CListBox myloglist;
CStatic myctrlbit;
CComboBox m_cTargetTypeBox;
CComboBox m_cComPortBox;
CString m_strTotal;
CString m_strPass;
CString m_strFail;
CString myrslt_qc;
CString myrslt_smt;
CString myrslt_cft;
CString myrslt_sw;
CString myrslt_imei;
CString myscanimei1;
CString myscanimei2;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSNWriterDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSNWriterDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnStart();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnAboutSn();
afx_msg void OnBtnQuit();
afx_msg void OnAtcmdMode();
afx_msg void OnChangePasswd();
afx_msg void OnEngToOperater();
afx_msg void OnBtnSysconfig();
afx_msg void OnFpAuthFile();
afx_msg void OnOptionAlreadyInMeta();
afx_msg void OnMetaMode();
afx_msg void OnOperatorToEng();
afx_msg void OnOptionDrmkey();
afx_msg void OnOptionExtmodem();
afx_msg void OnOptionHdcp();
afx_msg void OnOptionSecurityUsb();
afx_msg void OnOptionSwitchtool();
afx_msg void OnSpAuthFile();
afx_msg void OnOptionHdcpdata();
afx_msg void OnOptionUsbWithoutBattery();
afx_msg void OnEnableAutogen();
afx_msg void OnOptionCheckCalFlag();
afx_msg void OnOptionCheckFtFlag();
afx_msg void OnOptionSkipWriteProdinfo();
afx_msg void OnCheckBtwifi();
afx_msg void OnOptionCompositeDevice();
afx_msg void OnBacknvTopc();
afx_msg void OnFastbootOemLock();
virtual void OnOK();
afx_msg void OnSelchangeComboComport();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
void ParameterInit();
void MenuItemInit();
void EnableUIItem();
void DisableUIItem();
void SetUIItem();
void GetComPortDynamiclly();
void GetUIItem();
void UpdateOperateResult(WriteNvram_Status_e eWriteStatus = NORMAL);
void SwitchToEngineer();
void SwitchToOperator();
void GetIndicatorPos(CRect &rect);
void PopupMsgBox(const char* strTilte, UINT uType, const char* strMsg, ...);
void EnableStartBTN(bool bEnable = true);
void ShowTemperatureOnUI();
void reset_interface();
private:
HMENU m_hSNMenu;
CMenu m_SNMenu;
SmartPhoneSN m_spSN;
FeaturePhoneSN m_fpSN;
CButton m_StartBTN;
CButton m_QuitBTN;
CButton m_SystemCfgBTN;
public:
HBITMAP m_hBitmapPass;
HBITMAP m_hBitmapFail;
CFont m_font;
int mytime_count;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SNWRITERDLG_H__29A5423E_BA01_4A1E_BECC_1C25DBDFAC45__INCLUDED_)