📄 diary.h
字号:
// Diary.h : main header file for the DIARY application
//
#if !defined(AFX_DIARY_H__A9FC7E65_3BFA_11D9_8619_00E0292EDCA0__INCLUDED_)
#define AFX_DIARY_H__A9FC7E65_3BFA_11D9_8619_00E0292EDCA0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CDiaryApp:
// See Diary.cpp for the implementation of this class
//
class CMyDiary //定义一个自己的结构体,用来存储信息
{
public:
CTime m_TDate;
CString m_strWeek;
CString m_strWeather;
CString m_strBody;
CMyDiary()
{
memset(&m_TDate, 0, sizeof(m_TDate));
m_strWeek = "";
m_strWeather = "";
m_strBody = "";
}
};
typedef CTypedPtrList<CPtrList, CMyDiary*> CMyDiaryList;
/////////////////////////////////////////////////////////////
class CDiaryApp : public CWinApp
{
public:
CDiaryApp();
public:
void onSave();
void onRead();
CString TimetoCString(CTime& m_Ttime);
public:
CMyDiaryList m_diaryList;
POSITION m_pos;
BOOL is_old;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDiaryApp)
public:
virtual BOOL InitInstance();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CDiaryApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIARY_H__A9FC7E65_3BFA_11D9_8619_00E0292EDCA0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -