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

📄 docview2.cpp

📁 是一本很经典的书
💻 CPP
字号:
///////////////////////////////////////////////////////////////////
// Header  : DOCVIEW2.CPP
//
// Purpose : Defines the class behaviors for the application.
//
// Author  : Rob McGregor - rob_mcgregor@compuserve.com
//
// Date    : 05-12-96
///////////////////////////////////////////////////////////////////

#include "stdafx.h"      // Standard include
#include "DocView2.h"    // Application
#include "MainFrm.h"     // Frame Window
#include "DV_Doc.h"      // Document
#include "DV_View.h"     // View

///////////////////////////////////////////////////////////////////
// CDocView2App initialization

BOOL CDocView2App::InitInstance()
{
	//
   // Register the application's document template
	//
   CSingleDocTemplate* pDocTemplate;
	
   pDocTemplate = new CSingleDocTemplate(
		IDR_MAINFRAME,
		RUNTIME_CLASS(CDocView2Doc),
		RUNTIME_CLASS(CMainFrame),      // main SDI frame window
		RUNTIME_CLASS(CDocView2View));

	AddDocTemplate(pDocTemplate);
                           
	// Parse command line (this is required by doc/view)
   CCommandLineInfo cmdInfo;
	ParseCommandLine(cmdInfo);

	// Dispatch commands specified on the command line
	if (!ProcessShellCommand(cmdInfo))
		return FALSE;

   // Make the frame window 640 x 480 pixels
   ASSERT_VALID(this->m_pMainWnd);
   this->m_pMainWnd->SetWindowPos(0, 0, 0, 640, 480, SWP_SHOWWINDOW);

	return TRUE;
}

///////////////////////////////////////////////////////////////////
// CDocView2App construction/destruction

CDocView2App::CDocView2App()
{
}

CDocView2App::~CDocView2App()
{
} 

///////////////////////////////////////////////////////////////////
// Declare and initialize the sole CDocView2App object

CDocView2App MyApp;

⌨️ 快捷键说明

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