2020-03-11 01:58:06 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
#include "TabPageSSL.h"
|
|
|
|
|
#include "twglue.hpp"
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
|
|
// CBasicPage 对话框
|
|
|
|
|
|
|
|
|
|
class CBasicPage : public CTabPageSSL
|
|
|
|
|
{
|
|
|
|
|
DECLARE_DYNAMIC(CBasicPage)
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CBasicPage(std::function<void()> dataChange, CWnd* pParent = nullptr); // 标准构造函数
|
|
|
|
|
virtual ~CBasicPage();
|
|
|
|
|
|
|
|
|
|
CComboBox* m_cmBoxColorMode;
|
|
|
|
|
CComboBox* m_cmBoxSS;
|
|
|
|
|
CComboBox* m_cmBoxResultion;
|
|
|
|
|
CComboBox* m_cmBoxDuplex;
|
|
|
|
|
|
|
|
|
|
afx_msg void OnBnClickedBtnabout();
|
|
|
|
|
afx_msg void OnCbnSelchangeCmbcolortype();
|
|
|
|
|
afx_msg void OnCbnSelchangeCmbss();
|
|
|
|
|
afx_msg void OnCbnSelchangeCmbreslution();
|
|
|
|
|
afx_msg void OnCbnSelchangeCmbduplex();
|
2020-05-19 17:06:53 +00:00
|
|
|
|
|
2020-03-11 01:58:06 +00:00
|
|
|
|
public:
|
|
|
|
|
int AreaNum;
|
|
|
|
|
int DevnMax;
|
|
|
|
|
|
|
|
|
|
// 对话框数据
|
|
|
|
|
#ifdef AFX_DESIGN_TIME
|
|
|
|
|
enum { IDD = IDD_PAGEBASIC };
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
|
|
|
virtual BOOL OnInitDialog();
|
|
|
|
|
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
std::function<void()> m_dataChange;
|
|
|
|
|
public:
|
|
|
|
|
afx_msg void OnClickedBtndiscardsetting();
|
2020-03-17 13:02:50 +00:00
|
|
|
|
void SetScannerInfo(std::string hdVersion, std::string serialNum);
|
|
|
|
|
private:
|
|
|
|
|
std::string m_hdVersion;
|
|
|
|
|
std::string m_serialNum;
|
2020-03-11 01:58:06 +00:00
|
|
|
|
};
|