86 lines
2.0 KiB
C++
86 lines
2.0 KiB
C++
#pragma once
|
|
#include <map>
|
|
|
|
// CA3 对话框
|
|
|
|
class CA3 : public CDialog
|
|
{
|
|
DECLARE_DYNAMIC(CA3)
|
|
|
|
public:
|
|
CA3(CWnd* pParent = NULL); // 标准构造函数
|
|
virtual ~CA3();
|
|
|
|
// 对话框数据
|
|
enum { IDD = IDD_A3_DIALOG };
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnBnClickedBtngetsp();
|
|
afx_msg void OnBnClickedBtnsetsp();
|
|
afx_msg void OnBnClickedBtngetgraysp();
|
|
afx_msg void OnBnClickedBtnsetgraysp();
|
|
afx_msg void OnBnClickedBtngetuvsp();
|
|
afx_msg void OnBnClickedBtnsetuvsp();
|
|
afx_msg void OnBnClickedBtngetcolorsp();
|
|
afx_msg void OnBnClickedBtnsetcolorsp();
|
|
|
|
private:
|
|
void OnGetOrSetSp(bool get, int type);
|
|
public:
|
|
afx_msg void OnGetOrSetSleepTime(bool get, int type);
|
|
void UpdateMaxBright(bool get,int id);
|
|
void UpdateSleepTime(bool get);
|
|
void OnBnClickedBtngetsleeptime();
|
|
afx_msg void OnBnClickedBtnsetsleeptime();
|
|
afx_msg void OnBnClickedBtnsetclrmaxbrt();
|
|
afx_msg void OnBnClickedBtnsetgrymaxbrt();
|
|
afx_msg void OnBnClickedBtngetclrmaxbrt();
|
|
afx_msg void OnBnClickedBtngetgrymaxbrt();
|
|
afx_msg void OnBnClickedBtngetversion();
|
|
afx_msg void OnBnClickedBtnsetspeed();
|
|
afx_msg void OnBnClickedBtngetspeed();
|
|
void updatespeedmode(bool get);
|
|
private:
|
|
struct speedmodeparam {
|
|
int Speedmode;
|
|
unsigned int ColorSp;
|
|
unsigned int GraySp;
|
|
};
|
|
int speedemodelen;
|
|
std::map<int, speedmodeparam> speedmodeMap = {
|
|
{0,{70,0x42d,0xc88}},
|
|
{1,{80,0x37f,0xa7f}},
|
|
{2,{90,0x2b6,0x882}},
|
|
{3,{110,0x24e,0x706}},
|
|
{4,{100,0x27c,0x775}},
|
|
{5,{110,0x27c,0x775}},
|
|
{6,{120,0x27c,0x775}},
|
|
{7,{130,0x27c,0x775}}
|
|
};
|
|
|
|
std::map<int, CString> speedmodeMapString = {
|
|
{0,L"G100_70PPM"},
|
|
{1,L"G100_80PPM"},
|
|
{2,L"G100_90PPM"},
|
|
{3,L"G100_110PPM"},
|
|
{4,L"G200_100PPM"},
|
|
{5,L"G200_110PPM"},
|
|
{6,L"G200_120PPM"},
|
|
{7,L"G200_130PPM"}
|
|
};
|
|
|
|
std::map<int, CString> G300G400speedmodeMapString = {
|
|
{1,L"G300/G400_40PPM"},
|
|
{2,L"G300/G400_50PPM"},
|
|
{3,L"G300/G400_60PPM"},
|
|
{4,L"G300/G400_70PPM"},
|
|
{5,L"G400_80PPM"},
|
|
};
|
|
CComboBox m_cmbSpeedmode;
|
|
};
|