📄 a9410dlg.h
字号:
// A9410Dlg.h : header file
//
#if !defined(AFX_A9410DLG_H__36D35FE1_FBE8_42ED_8DE7_FAE3AF44CF7E__INCLUDED_)
#define AFX_A9410DLG_H__36D35FE1_FBE8_42ED_8DE7_FAE3AF44CF7E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CA9410Dlg dialog
class CA9410Dlg : public CDialog
{
// Construction
public:
CA9410Dlg(CWnd* pParent = NULL); // standard constructor
bool offFlag;
CString strPath;//文件路径
// Dialog Data
//{{AFX_DATA(CA9410Dlg)
enum { IDD = IDD_A9410_DIALOG };
CButton m_PowerOff;
CString m_Warning;
CString m_TimeNow;
CString m_TimeTotal;
CString m_TimeOne;
CString m_Remain;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CA9410Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CTime time_now;
CTimeSpan time_total;
CTimeSpan time_one;
CTimeSpan GetTotaltime();
CTimeSpan time_off;
void RecordBeginTime();
void SaveTime(CString strContent,CString strFileName,bool flag=true);
//flag=true为保存上机时间,false为保存总时间
void SaveTotalTime();//保存总时间
void PowerOff();//关机
// Generated message map functions
//{{AFX_MSG(CA9410Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer( UINT nIDEvent );
afx_msg void OnClose();
afx_msg LONG OnNotifyIcon(WPARAM wParam, LPARAM lParam);
afx_msg void OnTimerShow();
afx_msg void OnButtonPay();
afx_msg void OnButtonOff();
afx_msg void OnTimerPay();
afx_msg void OnTimerShowtime();
afx_msg void OnTimerPoweroff();
afx_msg void OnExit();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_A9410DLG_H__36D35FE1_FBE8_42ED_8DE7_FAE3AF44CF7E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -