dispzoom.cpp
来自「超声影像工作站系统可与各种型号的B超、彩超连接」· C++ 代码 · 共 102 行
CPP
102 行
// 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)
ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
ON_BN_CLICKED(IDC_BUTTON7, OnButton7)
ON_BN_CLICKED(IDC_BUTTON8, OnButton8)
ON_NOTIFY(NM_RELEASEDCAPTURE, IDC_SLIDER1, OnReleasedcaptureSlider1)
//}}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
}
void DispZoom::OnButton5()
{
}
void DispZoom::OnButton6()
{
}
void DispZoom::OnButton7()
{
}
void DispZoom::OnButton8()
{
}
void DispZoom::OnReleasedcaptureSlider1(NMHDR* pNMHDR, LRESULT* pResult)
{
// AfxMessageBox("OnReleasedcaptureSlider1");
*pResult = 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?