slstdoc.cpp

来自「中科院开源的ictprop源码,使用方法: 1、修改源码中的InputComb」· C++ 代码 · 共 90 行

CPP
90
字号
// SlstDoc.cpp : implementation file
//

#include "stdafx.h"
#include "prop.h"
#include "SlstDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSlstDoc

IMPLEMENT_DYNCREATE(CSlstDoc, CDocument)

CSlstDoc::CSlstDoc()
{
}

BOOL CSlstDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	return TRUE;
}

CSlstDoc::~CSlstDoc()
{
}


BEGIN_MESSAGE_MAP(CSlstDoc, CDocument)
	//{{AFX_MSG_MAP(CSlstDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSlstDoc diagnostics

#ifdef _DEBUG
void CSlstDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CSlstDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CSlstDoc serialization

void CSlstDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CSlstDoc commands

void CSlstDoc::SetTitle(LPCTSTR lpszTitle) 
{
	// TODO: Add your specialized code here and/or call the base class

	CString title="SentenceWindow";
	CDocument::SetTitle(LPCTSTR(title));
	
	CDocument::SetTitle(title);
}

BOOL CSlstDoc::SaveModified() 
{
	// TODO: Add your specialized code here and/or call the base class
	return TRUE;	
//	return CDocument::SaveModified();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?