|
// ConfigToolView.h: CConfigToolView 类的接口
|
//
|
|
#pragma once
|
|
#include "CChidSysCfg1.h"
|
#include "../MTerm1/KDefine.h"
|
|
class CConfigToolView : public CFormView
|
{
|
protected: // 仅从序列化创建
|
CConfigToolView() noexcept;
|
DECLARE_DYNCREATE(CConfigToolView)
|
|
public:
|
#ifdef AFX_DESIGN_TIME
|
enum{ IDD = IDD_CONFIGTOOL_FORM };
|
#endif
|
|
// 特性
|
public:
|
CConfigToolDoc* GetDocument() const;
|
|
// 操作
|
public:
|
|
// 重写
|
public:
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
virtual void OnInitialUpdate(); // 构造后第一次调用
|
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
|
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
|
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
|
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
|
|
// 实现
|
public:
|
virtual ~CConfigToolView();
|
#ifdef _DEBUG
|
virtual void AssertValid() const;
|
virtual void Dump(CDumpContext& dc) const;
|
#endif
|
|
protected:
|
|
// 生成的消息映射函数
|
protected:
|
DECLARE_MESSAGE_MAP()
|
public:
|
|
CRect rect0;
|
CRect rect1;
|
int m_nFrameheight;
|
int m_nPropHeight;
|
int m_nScrollPos = 0;
|
|
CChidSysCfg1 m_propsyscfg1;
|
|
unsigned short m_InfoBlockbuf[256];
|
pKMInfoBlock pInfoBlock;
|
|
unsigned char uuidbuf[256];
|
|
CString struuid;
|
|
unsigned short m_factorydataBuf[256];
|
stFactoryData * pfactorydata;
|
|
unsigned short m_cfgdatabuf[256];
|
pstKMSysCfg psyscfg;
|
|
bool m_bOpened = false;
|
bool m_bConnected = false;
|
afx_msg void OnClose();
|
afx_msg void OnDestroy();
|
|
int AddDlgItems();
|
afx_msg void OnBnClickedButtonCommSet();
|
afx_msg void OnBnClickedButtonConnect();
|
afx_msg void OnBnClickedButtonDisconnect();
|
afx_msg void OnBnClickedButtonUpload();
|
afx_msg void OnBnClickedButtonDownload();
|
afx_msg void OnBnClickedButtonEventlog();
|
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
|
CEdit m_edit_log1;
|
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
int DelayInit();
|
afx_msg void OnBnClickedButtonWritedata();
|
int ShowParams();
|
int GetParams();
|
afx_msg void OnBnClickedButtonTimeNow();
|
afx_msg void OnBnClickedButtonLoadSyscfgFile();
|
afx_msg void OnBnClickedButtonSaveSyscfgFile();
|
int ShowInfoBlockParams();
|
int ShowFactoryDataParams();
|
int GetFactoryDataParams();
|
int ClearInfoBlockParams();
|
int TestAutoConnect();
|
CString GetDeviceNameStr(int DeviceTypeVer);
|
};
|
|
#ifndef _DEBUG // ConfigToolView.cpp 中的调试版本
|
inline CConfigToolDoc* CConfigToolView::GetDocument() const
|
{ return reinterpret_cast<CConfigToolDoc*>(m_pDocument); }
|
#endif
|
|