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

📄 timeshutdownpcdlg.h

📁 VisualC高级编程技术精粹.rar
💻 H
字号:
// TimeShutDownPCDlg.h : header file
//

#if !defined(AFX_TIMESHUTDOWNPCDLG_H__F0B78143_D422_4E95_AC09_2CA4E2920452__INCLUDED_)
#define AFX_TIMESHUTDOWNPCDLG_H__F0B78143_D422_4E95_AC09_2CA4E2920452__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WM_TRAYICON		WM_USER+101
/////////////////////////////////////////////////////////////////////////////
// CTimeShutDownPCDlg dialog

class CTimeShutDownPCDlg : public CDialog
{
// Construction
public:
	CTimeShutDownPCDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTimeShutDownPCDlg)
	enum { IDD = IDD_TIMESHUTDOWNPC_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTimeShutDownPCDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTimeShutDownPCDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPopMenuShowWindow();
	afx_msg void OnPopMenuHideWindow();
	afx_msg void OnPopMenuQuit();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnButtonConfirm();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	afx_msg void OnTrayIcon(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

private:
	BYTE m_nTimes;


private:
	BOOL TrayNotifyMsg(DWORD Msg, 
		               UINT Icon = NULL, 
					   CString csTip = _T(""));
	void ShowCurrentTime();
	void ShowDown();
	BOOL CmpDateTime();
	BOOL IsWin2000_Xp();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TIMESHUTDOWNPCDLG_H__F0B78143_D422_4E95_AC09_2CA4E2920452__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -