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

📄 enrolltestdoc.cpp

📁 《医学图象的远程传输系统》
💻 CPP
字号:
// EnrollTestDoc.cpp : implementation of the CEnrollTestDoc class
//

#include "stdafx.h"
#include "EnrollTest.h"

#include "EnrollTestDoc.h"

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

#include "..\Enroll\EnrollInterface.h"

/////////////////////////////////////////////////////////////////////////////
// CEnrollTestDoc

IMPLEMENT_DYNCREATE(CEnrollTestDoc, CDocument)

BEGIN_MESSAGE_MAP(CEnrollTestDoc, CDocument)
	//{{AFX_MSG_MAP(CEnrollTestDoc)
	ON_COMMAND(IDR_EDIT_TEST, OnEditTest)
	ON_COMMAND(IDR_EDIT_TEST2, OnEditTest2)
	ON_COMMAND(IDR_EDIT_TEST3, OnEditTest3)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEnrollTestDoc construction/destruction

CEnrollTestDoc::CEnrollTestDoc()
{
	// TODO: add one-time construction code here

}

CEnrollTestDoc::~CEnrollTestDoc()
{
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CEnrollTestDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CEnrollTestDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CEnrollTestDoc commands

void CEnrollTestDoc::OnEditTest() 
{
	int n=ENAddPatient();
	CString s;
	s.Format("%d",n);
	MessageBox(0,s,"",0);
}

void CEnrollTestDoc::OnEditTest2() 
{
	CFileDialog fDlg(TRUE);
	if (fDlg.DoModal()==IDOK){
		CFile f;
		f.Open(fDlg.GetPathName(),CFile::modeRead);
		int BufferLength=f.GetLength();
		BYTE* Buffer=(BYTE*)::GlobalAlloc(GMEM_FIXED,BufferLength);
		f.ReadHuge(Buffer,BufferLength);
		int n=ENAddImage(0,Buffer,BufferLength);
		CString s;
		s.Format("%d",n);
		MessageBox(0,s,"",0);
	}
}

void CEnrollTestDoc::OnEditTest3() 
{
	ENBrowse();	
}

⌨️ 快捷键说明

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