#pragma once #include // 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(); afx_msg void OnBnClickedBtnGetSysInfo(); 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 speedmodeMap = { {0,{70,0x42d,0xc88}}, {1,{80,0x37f,0xa7f}}, {2,{90,0x2b6,0x822}}, {3,{110,0x24e,0x706}}, {4,{100,0x27c,0x775}}, {5,{110,0x27c,0x775}}, {6,{120,0x27c,0x775}}, {7,{130,0x27c,0x775}}, {8,{1,0,0}}, {9,{2,0,0}}, {10,{3,0,0}}, {11,{4,0,0}}, {12,{1,0,0}}, {13,{2,0,0}}, {14,{3,0,0}}, {15,{4,0,0}}, {16,{5,0,0}} }; std::map speedmodeMapString = { {0,L"G139_70PPM"}, {1,L"G139_80PPM"}, {2,L"G139_90PPM"}, {3,L"G139_110PPM"}, {4,L"G239_100PPM"}, {5,L"G239_110PPM"}, {6,L"G239_120PPM"}, {7,L"G239_130PPM"}, {8,L"G300_40PPM"}, {9,L"G300_50PPM"}, {10,L"G300_60PPM"}, {11,L"G300_700PPM"}, {12,L"G400_40PPM"}, {13,L"G400_50PPM"}, {14,L"G400_60PPM"}, {15,L"G400_70PPM"}, {16,L"G400_80PPM"}, }; CComboBox m_cmbSpeedmode; public: afx_msg void OnBnClickedBtngetip(); };