⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dispprocess.cpp

📁 超声影像工作站系统可与各种型号的B超、彩超连接
💻 CPP
字号:
// DispProcess.cpp : implementation file
// 

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

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

/////////////////////////////////////////////////////////////////////////////
// DispProcess dialog


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


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


BEGIN_MESSAGE_MAP(DispProcess, CDialog)
	//{{AFX_MSG_MAP(DispProcess)
	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_BUTTON5, OnButton5)
	ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DispProcess message handlers

BOOL DispProcess::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	p1.SubclassDlgItem(IDC_BUTTON1,this);
	p1.SetIcon(IDI_RLEFT);
	p1.SetWindowText("左旋90度");
	p2.SubclassDlgItem(IDC_BUTTON2,this);
	p2.SetIcon(IDI_RRIGHT);
	p2.SetWindowText("右旋90度");
	p3.SubclassDlgItem(IDC_BUTTON3,this);
	p3.SetIcon(IDI_FLIPV);
	p3.SetWindowText("上下翻转");
	p4.SubclassDlgItem(IDC_BUTTON4,this);
	p4.SetIcon(IDI_FLIPH);
	p4.SetWindowText("左右翻转");
	p5.SubclassDlgItem(IDC_BUTTON5,this);
	p5.SetIcon(IDI_EDG);
	p5.SetWindowText("边界增强");
	p6.SubclassDlgItem(IDC_BUTTON6,this);
	p6.SetIcon(IDI_ORG);
	p6.SetWindowText("恢复最初");
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void DispProcess::OnButton1() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPPRC,1,0);//rot left
}

void DispProcess::OnButton2() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPPRC,2,0);//rote right
}

void DispProcess::OnButton3() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPPRC,3,0);//flip vertical
}

void DispProcess::OnButton4() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPPRC,4,0);//flip harizantial
}

void DispProcess::OnButton5() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPPRC,5,0);//edge find
}

void DispProcess::OnButton6() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPPRC,6,0);//restore org	
}

⌨️ 快捷键说明

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