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

📄 standardlength.cpp

📁 CT工作站具有打印报告、病历管理、图像处理专家词库等功能
💻 CPP
字号:
// StandardLength.cpp : implementation file
//

#include "stdafx.h"
#include "bxt.h"
#include "StandardLength.h"

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

/////////////////////////////////////////////////////////////////////////////
// CStandardLength dialog


CStandardLength::CStandardLength(CWnd* pParent /*=NULL*/)
	: CDialog(CStandardLength::IDD, pParent)
{
	//{{AFX_DATA_INIT(CStandardLength)
	m_length = 0;
	m_unit = _T("");
	//}}AFX_DATA_INIT
}


void CStandardLength::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CStandardLength)
	DDX_Control(pDX, IDC_COMBO_UNIT, m_unitcontrol);
	DDX_Text(pDX, IDC_EDIT_LENGTH, m_length);
	DDX_CBString(pDX, IDC_COMBO_UNIT, m_unit);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CStandardLength, CDialog)
	//{{AFX_MSG_MAP(CStandardLength)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CStandardLength message handlers

void CStandardLength::OnOK() 
{
	UpdateData(true);
	CDialog::OnOK();
}

void CStandardLength::OnCancel() 
{
	CDialog::OnCancel();
}

BOOL CStandardLength::OnInitDialog() 
{
	CDialog::OnInitDialog();

	m_unitcontrol.AddString("毫米");
	m_unitcontrol.AddString("厘米");
	m_unitcontrol.AddString("分米");
	m_unitcontrol.SetCurSel(1);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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