lengthdialog.cpp

来自「VC做的矢量画图程序!」· C++ 代码 · 共 52 行

CPP
52
字号
// LengthDialog.cpp : implementation file
//

#include "stdafx.h"
#include "draw.h"
#include "LengthDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CLengthDialog dialog


CLengthDialog::CLengthDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CLengthDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CLengthDialog)
	m_xStart = 0.0f;
	m_yStart = 0.0f;
	m_xEnd = 0.0f;
	m_yEnd = 0.0f;
	m_length = 0.0f;
	//}}AFX_DATA_INIT
}


void CLengthDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CLengthDialog)
	DDX_Text(pDX, IDC_EDIT1, m_xStart);
	DDX_Text(pDX, IDC_EDIT2, m_yStart);
	DDX_Text(pDX, IDC_EDIT3, m_xEnd);
	DDX_Text(pDX, IDC_EDIT4, m_yEnd);
	DDX_Text(pDX, IDC_EDIT5, m_length);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CLengthDialog, CDialog)
	//{{AFX_MSG_MAP(CLengthDialog)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLengthDialog message handlers

⌨️ 快捷键说明

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