📄 turnofftime.h
字号:
#if !defined(AFX_TURNOFFTIME_H__E2D05D0F_2F06_4357_B71D_BADD0F597A31__INCLUDED_)
#define AFX_TURNOFFTIME_H__E2D05D0F_2F06_4357_B71D_BADD0F597A31__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TURNOFFTIME.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CTURNOFFTIME dialog
class CTURNOFFTIME : public CDialog
{
// Construction
public:
void Showtime(int time);
CTURNOFFTIME(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTURNOFFTIME)
enum { IDD = IDD_TURNOFFTIME };
CEdit m_controltime;
CString m_time;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTURNOFFTIME)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
int voice;//记录音量大小
int TimeCount;//关机步长
ULONG TurnoffTime;//设置关机时间
CString time;//记录当前设置的关机时间
int showtime;
CBitmapButton btn_voice1;
CBitmapButton btn_voice2;
CBitmapButton btn_voice3;
CBitmapButton btn_voice4;
CBitmapButton btn_decrease;
CBitmapButton btn_increase;
CBitmapButton btn_man;
CBitmapButton btn_changevoice;
CBitmapButton btn_changetime;
CBitmapButton btn_return;
CBitmapButton btn_home;
CFont* word;
// Generated message map functions
//{{AFX_MSG(CTURNOFFTIME)
afx_msg void Onhome();
virtual BOOL OnInitDialog();
afx_msg void Onincrease();
afx_msg void Ondecrease();
afx_msg void Onvoice1();
afx_msg void Onvoice2();
afx_msg void Onvoice3();
afx_msg void Onvoice4();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TURNOFFTIME_H__E2D05D0F_2F06_4357_B71D_BADD0F597A31__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -