printimage.cpp

来自「CT工作站具有打印报告、病历管理、图像处理专家词库等功能」· C++ 代码 · 共 63 行

CPP
63
字号
// PrintImage.cpp : implementation file
// 

#include "stdafx.h"
#include "bxt.h"
#include "PrintImage.h"
#include "bxtdlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// PrintImage dialog

PrintImage::PrintImage(CWnd* pParent /*=NULL*/)
	: CDialog(PrintImage::IDD, pParent)
{
	//{{AFX_DATA_INIT(PrintImage)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void PrintImage::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(PrintImage)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(PrintImage, CDialog)
	//{{AFX_MSG_MAP(PrintImage)
	ON_BN_CLICKED(IDC_BUTTON_SAVE, OnButtonSave)
	ON_BN_CLICKED(IDC_BUTTON_PRINT_REPORT, OnButtonPrintReport)
	ON_BN_CLICKED(IDC_BUTTON1_PRINT_REPORT2, OnButton1PrintReport2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// PrintImage message handlers

void PrintImage::OnButtonSave() 
{
	((CBxtDlg *)AfxGetMainWnd())->report->SaveReport();
}

void PrintImage::OnButtonPrintReport() 
{
	OnButtonSave();
	((CBxtDlg *)AfxGetMainWnd())->PrintReport(true,0);
}

void PrintImage::OnButton1PrintReport2() 
{
	OnButtonSave();
	((CBxtDlg *)AfxGetMainWnd())->PrintReport(true,1);
}

⌨️ 快捷键说明

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