dispzoom.cpp
来自「CT工作站具有打印报告、病历管理、图像处理专家词库等功能」· C++ 代码 · 共 76 行
CPP
76 行
// DispZoom.cpp : implementation file
//
#include "stdafx.h"
#include "bxt.h"
#include "DispZoom.h"
#include "bxtdlg.h"
#include "imageprocess.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DispZoom dialog
DispZoom::DispZoom(CWnd* pParent /*=NULL*/)
: CDialog(DispZoom::IDD, pParent)
{
//{{AFX_DATA_INIT(DispZoom)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void DispZoom::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DispZoom)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DispZoom, CDialog)
//{{AFX_MSG_MAP(DispZoom)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
ON_BN_CLICKED(IDC_BUTTON9, OnButton9)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DispZoom message handlers
void DispZoom::OnButton1()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM,1,0);//1 x
}
void DispZoom::OnButton2()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM,2,0);//1 x
}
void DispZoom::OnButton3()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM,3,0);//1 x
}
void DispZoom::OnButton4()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM,4,0);//1 x
}
void DispZoom::OnButton9()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM,0,0);//1 x
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?