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

📄 dispmeasure.cpp

📁 超声影像工作站系统可与各种型号的B超、彩超连接
💻 CPP
字号:
// DispMeasure.cpp : implementation file
//
 
#include "stdafx.h"
#include "bxt.h"
#include "DispMeasure.h"
#include "bxtdlg.h"
#include "MT.h"

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

/////////////////////////////////////////////////////////////////////////////
// DispMeasure dialog


DispMeasure::DispMeasure(CWnd* pParent /*=NULL*/)
	: CDialog(DispMeasure::IDD, pParent)
{
	//{{AFX_DATA_INIT(DispMeasure)
	//}}AFX_DATA_INIT
}


void DispMeasure::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DispMeasure)
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DispMeasure, CDialog)
	//{{AFX_MSG_MAP(DispMeasure)
	ON_BN_CLICKED(IDC_BUTTON_SET_STANDARD_LENGTH, OnButtonSetStandardLength)
	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)
	ON_BN_CLICKED(IDC_BUTTON7, OnButton7)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DispMeasure message handlers

BOOL DispMeasure::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	p1.SubclassDlgItem(IDC_BUTTON1,this);
	p1.SetIcon(IDI_M1);
	p1.SetWindowText("不规则面积");

	p2.SubclassDlgItem(IDC_BUTTON2,this);
	p2.SetIcon(IDI_M2);
	p2.SetWindowText("折线距离");
	
	p3.SubclassDlgItem(IDC_BUTTON3,this);
	p3.SetIcon(IDI_M3);
	p3.SetWindowText("普通夹角");

	p4.SubclassDlgItem(IDC_BUTTON4,this);
	p4.SetIcon(IDI_M4);
	p4.SetWindowText("不规则夹角");

	p5.SubclassDlgItem(IDC_BUTTON5,this);
	p5.SetIcon(IDI_M5);
	p5.SetWindowText("矩形面积");
	
	p6.SubclassDlgItem(IDC_BUTTON6,this);
	p6.SetIcon(IDI_M6);
	p6.SetWindowText("复杂夹角");
	
	p7.SubclassDlgItem(IDC_BUTTON7,this);
	p7.SetIcon(IDI_M7);
	p7.SetWindowText("删除标志");

	m_hInfoWnd	= GetDlgItem(IDC_EDIT_INFO_WND)->GetSafeHwnd();

	return TRUE;
}

void DispMeasure::OnButtonSetStandardLength() 
{
//	m_state.SetWindowText("设定标准长度...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_SETSTANDARDLENGTH, (LPARAM)(m_hInfoWnd));
}

void DispMeasure::OnButton1() 
{
//	m_state.SetWindowText("测量不规则面积...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_CHAOSAREA, (LPARAM)(m_hInfoWnd));
}

void DispMeasure::OnButton2() 
{
//	m_state.SetWindowText("测量折线距离...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_LINEDIST, (LPARAM)(m_hInfoWnd));
}

void DispMeasure::OnButton3() 
{
//	m_state.SetWindowText("测量普通夹角...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_ANGLE, (LPARAM)(m_hInfoWnd));
}

void DispMeasure::OnButton4() 
{
//	m_state.SetWindowText("测量不规则夹角...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_CHAOSANGLE, (LPARAM)(m_hInfoWnd));
}

void DispMeasure::OnButton5() 
{
//	m_state.SetWindowText("测量矩形面积...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_RECTAREA, (LPARAM)(m_hInfoWnd));
}

void DispMeasure::OnButton6() 
{
//	m_state.SetWindowText("测量复杂夹角...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_CHAOSANGLE, (LPARAM)(m_hInfoWnd));
}

void DispMeasure::OnButton7() 
{
//	m_state.SetWindowText("删除标志...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->
		SendMessage(WX_DSPMETA, ACTION_DELETE, (LPARAM)(m_hInfoWnd));
}

⌨️ 快捷键说明

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