www.pudn.com > final_6.rar > CuboidD.cpp
// CuboidD.cpp : implementation file
//
#include "stdafx.h"
#include "CG.h"
#include "CuboidD.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCuboidD dialog
CCuboidD::CCuboidD(CWnd* pParent /*=NULL*/)
: CDialog(CCuboidD::IDD, pParent)
{
//{{AFX_DATA_INIT(CCuboidD)
m_height =40;
m_length =70;
m_width = 100;
m_CenX = 0;
m_CenY = 0;
m_CenZ = 0;
//}}AFX_DATA_INIT
}
void CCuboidD::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCuboidD)
DDX_Text(pDX, IDC_H, m_height);
DDV_MinMaxInt(pDX, m_height, 0, 200);
DDX_Text(pDX, IDC_L, m_length);
DDV_MinMaxInt(pDX, m_length, 0, 200);
DDX_Text(pDX, IDC_W, m_width);
DDV_MinMaxInt(pDX, m_width, 0, 200);
DDX_Text(pDX, IDC_CenX, m_CenX);
DDX_Text(pDX, IDC_CenY, m_CenY);
DDX_Text(pDX, IDC_CenZ, m_CenZ);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCuboidD, CDialog)
//{{AFX_MSG_MAP(CCuboidD)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCuboidD message handlers