⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arcdlg.cpp

📁 一个球面积,曲率半径,子午圈的C++程序,有需要的请下载
💻 CPP
字号:
// ArcDlg.cpp : implementation file
//

#include "stdafx.h"
#include "DtPro.h"
#include "ArcDlg.h"
#include"DtProDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CArcDlg dialog


CArcDlg::CArcDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CArcDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CArcDlg)
	m_nTemp=0;
	m_lLtd = 0;
	m_lStd = 0;
	//}}AFX_DATA_INIT
}


void CArcDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CArcDlg)
	DDX_Text(pDX, IDC_EDIT1, m_lLtd);
	DDV_MinMaxInt(pDX, m_lLtd, 0, 90);
	DDX_Text(pDX, IDC_EDIT2, m_lStd);
	DDV_MinMaxInt(pDX, m_lStd, 0, 60);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CArcDlg, CDialog)
	//{{AFX_MSG_MAP(CArcDlg)
	ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CArcDlg message handlers

void CArcDlg::OnOK() 
{
	// TODO: Add extra validation here
	m_nTemp=0;	
	CDialog::OnOK();
}

void CArcDlg::OnCancel() 
{
	// TODO: Add extra cleanup here
	m_nTemp=1;
	
	CDialog::OnCancel();
}

void CArcDlg::OnChangeEdit1() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here

	
}

void CArcDlg::OnButton1() 
{
	// TODO: Add your control notification handler code here
	m_nTemp=1;
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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