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

📄 dispmeasure.cpp

📁 CT工作站具有打印报告、病历管理、图像处理专家词库等功能
💻 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)
	DDX_Control(pDX, IDC_EDIT_STATE, m_state);
	//}}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_BUTTON5, OnButton5)
	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_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("删除标志");

	return TRUE;
}

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

void
DispMeasure::OnButton1() 
{
	m_state.SetWindowText("测量不规则面积...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPMSU,ACTION_MEASCHAOSAREA,0);
}

void
DispMeasure::OnButton2() 
{
	m_state.SetWindowText("测量折线距离...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPMSU,ACTION_MEASLINEDIST,0);
}

void
DispMeasure::OnButton3() 
{
	m_state.SetWindowText("测量普通夹角...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPMSU,ACTION_MEASANGLE,0);
}

void
DispMeasure::OnButton4() 
{
	m_state.SetWindowText("测量不规则夹角...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPMSU,ACTION_MEASCHAOSANGLE,0);
}

void
DispMeasure::OnButton5() 
{
	m_state.SetWindowText("测量矩形面积...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPMSU,ACTION_MEASRECTAREA,0);
}

void
DispMeasure::OnButton6() 
{
	m_state.SetWindowText("测量复杂夹角...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPMSU,ACTION_MEASCHAOSANGLE,0);
}

void
DispMeasure::OnButton7() 
{
	m_state.SetWindowText("删除标志...");
	((CBxtDlg *)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPMSU,ACTION_MEASDELETE,0);
}

⌨️ 快捷键说明

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