📄 printimage.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -