⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scintillamfcdoc.cpp

📁 一个可以提供语法高亮显示的编辑器
💻 CPP
字号:
// scintillamfcDoc.cpp : Implementierung der Klasse CScintillamfcDoc
//

#include "stdafx.h"
#include "scintillamfc.h"
#include "scintillamfcDoc.h"
#include "ScintillamfcView.h"
#include "ScintillaWnd.h"

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

/////////////////////////////////////////////////////////////////////////////
// CScintillamfcDoc

IMPLEMENT_DYNCREATE(CScintillamfcDoc, CDocument)

BEGIN_MESSAGE_MAP(CScintillamfcDoc, CDocument)
	//{{AFX_MSG_MAP(CScintillamfcDoc)
		// HINWEIS - Hier werden Mapping-Makros vom Klassen-Assistenten eingef黦t und entfernt.
		//    Innerhalb dieser generierten Quelltextabschnitte NICHTS VER腘DERN!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CScintillamfcDoc Konstruktion/Destruktion

CScintillamfcDoc::CScintillamfcDoc()
{
	// ZU ERLEDIGEN: Hier Code f黵 One-Time-Konstruktion einf黦en

}

CScintillamfcDoc::~CScintillamfcDoc()
{
}

BOOL CScintillamfcDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// ZU ERLEDIGEN: Hier Code zur Reinitialisierung einf黦en
	// (SDI-Dokumente verwenden dieses Dokument)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CScintillamfcDoc Serialisierung

void CScintillamfcDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// ZU ERLEDIGEN: Hier Code zum Speichern einf黦en
	}
	else
	{
		// ZU ERLEDIGEN: Hier Code zum Laden einf黦en
	}
}

/////////////////////////////////////////////////////////////////////////////
// CScintillamfcDoc Diagnose

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

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

/////////////////////////////////////////////////////////////////////////////
// CScintillamfcDoc Befehle

BOOL CScintillamfcDoc::OnOpenDocument(LPCTSTR lpszPathName) 
{
	if (!CDocument::OnOpenDocument(lpszPathName))
		return FALSE;
	
	// TODO: Speziellen Erstellungscode hier einf黦en
	return TRUE;
}

BOOL CScintillamfcDoc::OnSaveDocument(LPCTSTR lpszPathName) 
{
   POSITION pos = GetFirstViewPosition();
   CScintillamfcView *pFirstView = (CScintillamfcView*)GetNextView( pos ); // assume only one view
   if (pFirstView != NULL)
      return pFirstView->Save(lpszPathName);
	return CDocument::OnSaveDocument(lpszPathName);
}

⌨️ 快捷键说明

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