standardlength.cpp

来自「CT工作站具有打印报告、病历管理、图像处理专家词库等功能」· C++ 代码 · 共 70 行

CPP
70
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?