AutoCloseDlg.h
资源名称:autoclose [点击查看]
上传用户:zhuoli121
上传日期:2007-01-13
资源大小:43k
文件大小:2k
源码类别:
Shell编程
开发平台:
WINDOWS
- // AutoCloseDlg.h : header file
- //
- #if !defined(AFX_AUTOCLOSEDLG_H__C960B7A2_BF60_4937_9A96_10F27EE86816__INCLUDED_)
- #define AFX_AUTOCLOSEDLG_H__C960B7A2_BF60_4937_9A96_10F27EE86816__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define MYWM_NOTIFYICON WM_USER+1
- /////////////////////////////////////////////////////////////////////////////
- // CAutoCloseDlg dialog
- class CAutoCloseDlg : public CDialog
- {
- // Construction
- public:
- BOOL fResult;
- TOKEN_PRIVILEGES tkp;
- HANDLE hToken;
- NOTIFYICONDATA m_tnid; //设置系统托盘
- CString close_min;
- CString close_hour;
- BOOL begin; //是否按下了START按钮
- CAutoCloseDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CAutoCloseDlg)
- enum { IDD = IDD_AUTOCLOSE_DIALOG };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAutoCloseDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CAutoCloseDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnSelchangeHour();
- afx_msg void OnSelchangeMin();
- afx_msg void OnStart();
- afx_msg void OnDestroy();
- afx_msg void OnAbout();
- afx_msg void OnStop();
- afx_msg void OnDisplay();
- afx_msg void OnQuit();
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_AUTOCLOSEDLG_H__C960B7A2_BF60_4937_9A96_10F27EE86816__INCLUDED_)