⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myshutdownprocessdlg.h

📁 这是用visual studio 实现的program。是一个自动关机的程序!效果
💻 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 + -