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

📄 jpegeqdoc.cpp

📁 可以选择各种压缩方式对读入的图像进行压缩和解压
💻 CPP
字号:
// JPEGEQDoc.cpp : implementation of the CJPEGEQDoc class
//

#include "stdafx.h"
#include "JPEGEQ.h"

#include "JPEGEQDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CJPEGEQDoc

IMPLEMENT_DYNCREATE(CJPEGEQDoc, CDocument)

BEGIN_MESSAGE_MAP(CJPEGEQDoc, CDocument)
	//{{AFX_MSG_MAP(CJPEGEQDoc)
		// 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(CJPEGEQDoc, CDocument)
	//{{AFX_DISPATCH_MAP(CJPEGEQDoc)
		// 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_IJPEGEQ to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {08BFE3E7-2315-495B-8AFF-63936E748A40}
static const IID IID_IJPEGEQ =
{ 0x8bfe3e7, 0x2315, 0x495b, { 0x8a, 0xff, 0x63, 0x93, 0x6e, 0x74, 0x8a, 0x40 } };

BEGIN_INTERFACE_MAP(CJPEGEQDoc, CDocument)
	INTERFACE_PART(CJPEGEQDoc, IID_IJPEGEQ, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CJPEGEQDoc construction/destruction

CJPEGEQDoc::CJPEGEQDoc()
{
	// TODO: add one-time construction code here
	strcpy(mstring,"A Simple Document/View Application.");

	EnableAutomation();

	AfxOleLockApp();
}

CJPEGEQDoc::~CJPEGEQDoc()
{
	AfxOleUnlockApp();
}

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

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CJPEGEQDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CJPEGEQDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CJPEGEQDoc commands

⌨️ 快捷键说明

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