gps/GPSProject/GPSMain/SetBacklightDlg.h

74 lines
2.1 KiB
C
Raw Permalink Normal View History

2019-05-01 12:32:35 +00:00
#if !defined(AFX_SETBACKLIGHTDLG_H__64767A22_FD78_4C8F_995D_38A52B01F054__INCLUDED_)
#define AFX_SETBACKLIGHTDLG_H__64767A22_FD78_4C8F_995D_38A52B01F054__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SetBacklightDlg.h : header file
//
#include "BmpTxtButton.h"
#include "BmpProgress.h"
/////////////////////////////////////////////////////////////////////////////
// CSetBacklightDlg dialog
class CSetBacklightDlg : public CDialog
{
private:
CDC m_BgDC;
int m_BattryTime;
int m_ACPowerTime;
int m_TimeTab[16];
int m_Backlight; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
CFont m_txtFont;
CFont m_titleFont;
// Construction
public:
bool SetRegBacklightValue(int iValue);
int GetRegBacklightValue(void);
CSetBacklightDlg(CWnd* pParent = NULL); // standard constructor
~CSetBacklightDlg();
// Dialog Data
//{{AFX_DATA(CSetBacklightDlg)
enum { IDD = IDD_DIALOG_BACKLIGHT };
CBmpProgress m_prgLight;
CBmpTxtButton m_butPowerDec;
CBmpTxtButton m_butPowerAdd;
CBmpTxtButton m_butLightDec;
CBmpTxtButton m_butLightAdd;
CBmpTxtButton m_butBattryDec;
CBmpTxtButton m_butBattryAdd;
CBmpTxtButton m_butExit;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSetBacklightDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSetBacklightDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButtonBacklightExit();
afx_msg void OnButtonBartyadd();
afx_msg void OnButtonBartydec();
afx_msg void OnButtonLightadd();
afx_msg void OnButtonLightdec();
afx_msg void OnButtonPoweradd();
afx_msg void OnButtonPowerdec();
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SETBACKLIGHTDLG_H__64767A22_FD78_4C8F_995D_38A52B01F054__INCLUDED_)