printimage.cpp

来自「超声影像工作站系统可与各种型号的B超、彩超连接」· C++ 代码 · 共 78 行

CPP
78
字号
// 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)
	ON_BN_CLICKED(IDC_BUTTON1_PRINT_REPORT3, OnButton1PrintReport3)
	ON_BN_CLICKED(IDC_BUTTON1_PRINT_REPORT4, OnButton1PrintReport4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

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

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

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

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

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

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

⌨️ 快捷键说明

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