oscardoc.cpp
来自「c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++」· C++ 代码 · 共 98 行
CPP
98 行
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
// http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////
// OscarDoc.cpp : implementation of the COscarDoc class
//
#include "stdafx.h"
#include "Oscar.h"
#include "OscarDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COscarDoc
IMPLEMENT_DYNCREATE(COscarDoc, CDocument)
BEGIN_MESSAGE_MAP(COscarDoc, CDocument)
//{{AFX_MSG_MAP(COscarDoc)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COscarDoc construction/destruction
COscarDoc::COscarDoc()
{
}
COscarDoc::~COscarDoc()
{
}
BOOL COscarDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// Set the document title.
COscarApp *pApp = (COscarApp *)AfxGetApp( );
ASSERT(pApp != NULL);
CString cszTarget = pApp->m_cszNewTargetMachine;
SetTitle(cszTarget);
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// COscarDoc serialization
void COscarDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
}
else
{
}
}
/////////////////////////////////////////////////////////////////////////////
// COscarDoc diagnostics
#ifdef _DEBUG
void COscarDoc::AssertValid() const
{
CDocument::AssertValid();
}
void COscarDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// COscarDoc commands
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?