Скачиваний:
17
Добавлен:
01.05.2014
Размер:
1.11 Кб
Скачать
// Ugol.cpp : implementation file
//

#include "stdafx.h"
#include "oglshape.h"
#include "Ugol.h"
#include <stdlib.h>

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

/////////////////////////////////////////////////////////////////////////////
// CUgol dialog


//DEL CUgol::CUgol(CWnd* pParent /*=NULL*/)
//DEL 	: CDialog(CUgol::IDD, pParent)
//DEL {
//DEL 	//{{AFX_DATA_INIT(CUgol)
//DEL 	//}}AFX_DATA_INIT
//DEL 	m_ugol =  0.0f;
//DEL }


void CUgol::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CUgol)
	//}}AFX_DATA_MAP
}



BEGIN_MESSAGE_MAP(CUgol, CDialog)
	//{{AFX_MSG_MAP(CUgol)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CUgol message handlers

float CUgol::GetUgol()
{
	return m_ugol;
}

void CUgol::OnOK() 
{
	// TODO: Add extra validation here
	CString strAlphaParam;

	GetDlgItemText(IDC_UGOL, strAlphaParam);

	m_ugol = (float)atof(strAlphaParam);

	CDialog::OnOK();
}
Соседние файлы в папке Лабораторная работа №34