www.pudn.com > final_6.rar > BallDialog.cpp
// BallDialog.cpp : implementation file
//
#include "stdafx.h"
#include "CG.h"
#include "BallDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBallDialog dialog
CBallDialog::CBallDialog(CWnd* pParent /*=NULL*/)
: CDialog(CBallDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CBallDialog)
m_radius = 60;
m_x = 50;
m_y = 0;
m_z = 0;
//}}AFX_DATA_INIT
}
void CBallDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBallDialog)
DDX_Text(pDX, IDC_RADIUS, m_radius);
DDV_MinMaxDouble(pDX, m_radius, 0., 200.);
DDX_Text(pDX, IDC_X, m_x);
DDV_MinMaxDouble(pDX, m_x, -500., 500.);
DDX_Text(pDX, IDC_Y, m_y);
DDV_MinMaxDouble(pDX, m_y, -500., 500.);
DDX_Text(pDX, IDC_Z, m_z);
DDV_MinMaxDouble(pDX, m_z, -500., 500.);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CBallDialog, CDialog)
//{{AFX_MSG_MAP(CBallDialog)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBallDialog message handlers