📄 toolsdlg.h
字号:
//
#pragma once
#include "afxwin.h"
#include "atlcomtime.h"
// CToolsDlg 对话框
class CToolsDlg : public CDialog
{
// 构造
public:
CToolsDlg(CWnd* pParent = NULL); // 标准构造函数
~CToolsDlg();
// 对话框数据
enum { IDD = IDD_TOOLS_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void ShutDown();
// Generated message map functions
//{{AFX_MSG(CToolsDlg)
afx_msg void OnMenuAbort();
afx_msg void OnMenuMain();
afx_msg void OnMenuNowshut();
afx_msg void OnMenuExit();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void WriteReg(CString path);
CString GetMyPath();
afx_msg BOOL PreTranslateMessage(MSG *pMsg);
bool SetChar(CString &str,CEdit& m_edit);
bool OpenRegKey();
void DelRegKey();
void WriteButton();
BOOL m_IsShow;
//BCMenu popmenu;
bool m_bCheckShut;
public:
//FILE* m_pWriteFile;
//FILE* m_pWriteFile1;
//FILE* m_pMoniFile;
char m_strFile[10][100];
int m_iMoniNum;
int m_iRunTime;
afx_msg void OnBnClickedSetPara();
afx_msg void OnBnClickedOk();
CButton m_Force;
bool m_bRunGame;
bool m_forcecheck;
bool m_autorun;
CButton m_AutoRun;
COleDateTime m_curTime;
COleDateTime m_BeginTime;
void OutPutInfo(CString sInfo);
int m_iTime;
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
CString m_sNowTime;
afx_msg void OnBnClickedCheckShut();
CButton m_btnCheckShut;
COleDateTime m_ShutTime;
afx_msg void OnDtnDatetimechangeShutTime(NMHDR *pNMHDR, LRESULT *pResult);
CString m_sLeftTime;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -