📄 supernotepaddlg.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -