📄 myshutdownprocessdlg.h
字号:
// MyShutDownProcessDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
// CMyShutDownProcessDlg 对话框
class CMyShutDownProcessDlg : public CDialog
{
// 构造
public:
CMyShutDownProcessDlg(CWnd* pParent = NULL); // 标准构造函数
//析构
~CMyShutDownProcessDlg();
//当前时间
int Year;
int Mon;
int Day;
int Hour;
int Min;
int Sec;
//关机时间
unsigned int CountTime;
//时钟指示器
bool opentimer;
//提示控件类
CToolTipCtrl m_ToolTip;
CToolTipCtrl* m_pToolTip;
// 对话框数据
enum { IDD = IDD_MYSHUTDOWNPROCESS_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL PreTranslateMessage(MSG *pMsg);
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnCbnSelchangeCombo1();
afx_msg void OnBnClickedOk();
afx_msg void OnTimer(UINT nIDEvent);
private:
CComboBox MCtl_COMBO1;
CButton MCtl_IDOK;
public:
afx_msg void OnClose();
afx_msg void OnCbnSelchangeYear();
CComboBox MCtl_YEAR;
CComboBox MCtl_MONTH;
CComboBox MCtl_DAY;
CComboBox MCtl_HOUR;
CComboBox MCtl_MINUTE;
CComboBox MCtl_SECOND;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -