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

📄 timetipdlg.h

📁 非比寻常的超级记事本 1.日历控件的使用 2.托盘技术 3.开机后应用程序自动启动 4.非模态对话框的创建和关闭 5.Singleton类的使用 6.文件的读写 7.弹出式菜单的创建
💻 H
字号:
#if !defined(AFX_TIMETIPDLG_H__EEFADBDB_86A9_451F_A1A7_DD7D4D951C97__INCLUDED_)
#define AFX_TIMETIPDLG_H__EEFADBDB_86A9_451F_A1A7_DD7D4D951C97__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TimeTipDlg.h : header file
//

#include "SettingDlg.h"
#include "TimeInfo.h"
#include "TipDlg.h"

#define	WM_SET_SHUTDOWN	( WM_APP + 10 )
#define	WM_SET_SHOWTIP	( WM_APP + 20 )
/////////////////////////////////////////////////////////////////////////////
// CTimeTipDlg dialog

typedef CTypedPtrArray< CObArray, CTimeInfo* > CTimeInfoArray;

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

// Dialog Data
	//{{AFX_DATA(CTimeTipDlg)
	enum { IDD = IDD_TIMETIP_DIALOG };
	CListCtrl	m_listCtrlInfo;
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTimeTipDlg)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnShowTip( WPARAM wParam, LPARAM lParam );
	afx_msg BOOL OnShowToolBarTip( UINT uID, NMHDR* pTTTStruct, LRESULT* pResult );
	afx_msg void AddSettingItem();
	afx_msg void DelSettingItem();
	afx_msg void OnShutDown( WPARAM wParam, LPARAM lParam );
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	CToolBar   m_toolBar;
	CStatusBar m_statusBar;
	CString m_strFileName;
	CTimeInfoArray m_timeInfoArray;
	int m_nTip;

private:
	void InitListCtrl();
	void AddToolBar();
	void AddStatusBar();
	void SaveSetting();
	void GetSetting();
	void SetCurrentTime();
	
};

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

#endif // !defined(AFX_TIMETIPDLG_H__EEFADBDB_86A9_451F_A1A7_DD7D4D951C97__INCLUDED_)

⌨️ 快捷键说明

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