?? note.h
字號:
// Note.h : main header file for the NOTE application
//
#if !defined(AFX_NOTE_H__F2CE3D87_4EC3_11D6_B545_00E04C104C2B__INCLUDED_)
#define AFX_NOTE_H__F2CE3D87_4EC3_11D6_B545_00E04C104C2B__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
/////////////////////////////////////////////////////////////////////////////
// CNoteApp:
// See Note.cpp for the implementation of this class
//
class CNoteApp : public CWinApp
{
public:
CNoteApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNoteApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CNoteApp)
// 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()
};
//定義樹控件中所有節點的基本信息,用于保存文件時和讀文件時用
typedef struct {
char szName[512]; //節點名,設最大為512個字符
BOOL bIsDoc; //該節點是不是文檔節點(保存時如時文檔節點則還要讀該文檔節點對應的內容
int nFlag; //表示該節點與位于文件中前一個節點的關系,用于構造樹時用
DWORD dwOffset; //如是文檔節點,則表示該文檔內容在文件中的起始位置(具體說明見說明.txt)
DWORD dwLength; //...................該文檔內容的長度
} ITEM_INFO;
//定義樹控件中屬于文檔節點的Item的信息,用于顯示文檔內容時用
typedef struct {
char szFileName[MAX_PATH];//該文檔節點內容所在的文件名
BOOL bIsNew; //是不是新插入的節點(如果不是則讀其內容后要解壓縮)
DWORD dwOffset; //該文檔節點內容在所在文件中的偏移地址
DWORD dwLength; //該文檔節點內容的長度
} DOC_INFO;
//定義文件頭,用于判別文件格式
typedef struct {
char szFlag[32]; //文件類型標志
DWORD dwItemCount; //文件中保存的所有節點數
DWORD dwDocOffset; //文檔內容在文件中的起始位置
DWORD dwItemInfoCompressedSize;
} FILE_HEADER;
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NOTE_H__F2CE3D87_4EC3_11D6_B545_00E04C104C2B__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -