supernotepaddlg.h

来自「非比寻常的超级记事本 1.日历控件的使用 2.托盘技术 3.开机后应用程序」· C头文件 代码 · 共 105 行

H
105
字号
// SuperNotepadDlg.h : header file
//
//{{AFX_INCLUDES()
#include "monthview.h"
//}}AFX_INCLUDES

#if !defined(AFX_SUPERNOTEPADDLG_H__AC8187C8_C3FE_44B3_A495_C94CD21EA88D__INCLUDED_)
#define AFX_SUPERNOTEPADDLG_H__AC8187C8_C3FE_44B3_A495_C94CD21EA88D__INCLUDED_

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

#define	WM_SHELLNOTIFY	( WM_APP + 1 )
/////////////////////////////////////////////////////////////////////////////
// CSuperNotepadDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CSuperNotepadDlg)
	enum { IDD = IDD_SUPERNOTEPAD_DIALOG };
	CEdit	m_ctrlEditEvent;
	CButton	m_btnClear;
	CButton	m_btnGiveUp;
	CButton	m_btnSave;
	CMonthView	m_ctrMonthView;
	CString	m_csEventEdit;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSuperNotepadDlg)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMenuitemHelpExplain();	
	afx_msg void OnDateClickMonthview(DATE DateClicked);
	afx_msg void OnButtonSave();
	afx_msg void OnButtonGiveup();
	afx_msg void OnDateDblClickMonthview(DATE DateDblClicked);
	afx_msg void OnChangeEditEvent();
	afx_msg void OnButtonClearEvent();
	afx_msg void OnMenuSystemQuit();
	afx_msg void OnMenuitemHelpAboutDeveloper();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnShellNotify( WPARAM wParam, LPARAM lParam );
	afx_msg void OnSize( UINT nType, int cx, int cy );
	afx_msg void OnButtonEdit();
	afx_msg void OnButtonRegularTip();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	CString GetDayInOneWeek(int nDayofWeek);
	CString ReadFromSaveFile();

    void DoClickEvent();
    void DoDbClickEvent();		
	void InitNotifyIconData();
	void PopupMenu();
	void ShowTipInfo();

	BOOL CompareDateTime();

private:
	CString m_csTimeData;
    CString m_csCurrentTime;
    CString m_csBufferTime; 
    CString m_csYear;
    CString m_csMonth;
    CString m_csDay;
	int m_nDay;
	int m_nMonth;
	int m_nYear;
	bool m_bSave;
	bool m_bIsEdit;
	CStdioFile myFileSave;  
	
	// Save the original window position and show window in the saved position.
	WINDOWPLACEMENT	m_wndPlaceMent;	
};

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

#endif // !defined(AFX_SUPERNOTEPADDLG_H__AC8187C8_C3FE_44B3_A495_C94CD21EA88D__INCLUDED_)

⌨️ 快捷键说明

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