44 lines
2.0 KiB
C++
44 lines
2.0 KiB
C++
#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];
|
||
};
|