|
// PolygonDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Modeler.h"
#include "PolygonDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPolygonDlg dialog
CPolygonDlg::CPolygonDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPolygonDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPolygonDlg)
m_Length = 0.0f;
m_Sides = 0;
//}}AFX_DATA_INIT
}
void CPolygonDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPolygonDlg)
DDX_Text(pDX, IDC_EDIT1, m_Length);
DDV_MinMaxFloat(pDX, m_Length, 1.e-003f, 2.f);
DDX_Text(pDX, IDC_EDIT2, m_Sides);
DDV_MinMaxUInt(pDX, m_Sides, 3, 100);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPolygonDlg, CDialog)
//{{AFX_MSG_MAP(CPolygonDlg)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPolygonDlg message handlers
void CPolygonDlg::OnButton1()
{
CColorDialog dlg;
}
CPolygonDlg::CPolygonDlg(float length, UINT sides, CWnd *pParent)
: CDialog(CPolygonDlg::IDD, pParent)
{
m_Sides = sides;
m_Length = length;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Started off with vb6
and am self-taught at C++, FoxPro, DirectX, etc. I'm currently developing with VFP9 and C# in desktop apps, webservices, telephony apps.