twain2/hugaotwainds/BrightSetting.h

44 lines
2.0 KiB
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
// BrightSetting 对话框
class BrightSetting : public CDialog
{
DECLARE_DYNAMIC(BrightSetting)
public:
BrightSetting(CWnd* pParent = nullptr); // 标准构造函数
virtual ~BrightSetting();
CSliderCtrl m_sldBrightness;
CSliderCtrl m_sldContrast;
CSliderCtrl m_sldGamma;
CStatic m_LBBrightness;
CStatic m_LBContrast;
CStatic m_LBGamma;
CButton m_CKSelfContrast;
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG_PAGEBRIGHTNESS };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
private:
void OnInitBrightness(int value);
void OnInitContrast(int value);
void OnInitGamma(int value);
public:
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnBnClickedChkselfcontrast();
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
private:
char strC[1];
char strB[1];
char strG[10];
};