?? readerdoc.cpp
字號:
// readerDoc.cpp : implementation of the CReaderDoc class
//
#include "stdafx.h"
#include "reader.h"
#include "readerDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CReaderDoc
IMPLEMENT_DYNCREATE(CReaderDoc, CDocument)
BEGIN_MESSAGE_MAP(CReaderDoc, CDocument)
//{{AFX_MSG_MAP(CReaderDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CReaderDoc, CDocument)
//{{AFX_DISPATCH_MAP(CReaderDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IReader to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {4C5A6157-77E4-4F1E-AB17-9AA9ECB0C690}
static const IID IID_IReader =
{ 0x4c5a6157, 0x77e4, 0x4f1e, { 0xab, 0x17, 0x9a, 0xa9, 0xec, 0xb0, 0xc6, 0x90 } };
BEGIN_INTERFACE_MAP(CReaderDoc, CDocument)
INTERFACE_PART(CReaderDoc, IID_IReader, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CReaderDoc construction/destruction
CReaderDoc::CReaderDoc()
{
// TODO: add one-time construction code here
EnableAutomation();
AfxOleLockApp();
}
CReaderDoc::~CReaderDoc()
{
AfxOleUnlockApp();
}
BOOL CReaderDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CReaderDoc serialization
void CReaderDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CReaderDoc diagnostics
#ifdef _DEBUG
void CReaderDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CReaderDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CReaderDoc commands
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -