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

📄 singleepochdlg.cpp

📁 计算摄动力模型中关于海潮固体潮极潮以及利用行星星历表计算太阳月亮位置的程序
💻 CPP
字号:
// SingleEpochDlg.cpp : implementation file
//

#include "stdafx.h"
#include "compute.h"
#include "SingleEpochDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSingleEpochDlg dialog


CSingleEpochDlg::CSingleEpochDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSingleEpochDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSingleEpochDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CSingleEpochDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSingleEpochDlg)
	DDX_Control(pDX, IDC_COB_PRN, m_prn);
	DDX_Control(pDX, IDC_COB_YEAR, m_year);
	DDX_Control(pDX, IDC_COB_SEC, m_sec);
	DDX_Control(pDX, IDC_COB_MONTH, m_month);
	DDX_Control(pDX, IDC_COB_MIN, m_min);
	DDX_Control(pDX, IDC_COB_HOUR, m_hour);
	DDX_Control(pDX, IDC_COB_DAY, m_day);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CSingleEpochDlg message handlers

void CSingleEpochDlg::OnOK() 
{
	// TODO: Add extra validation here
	prn=m_prn.GetCurSel()+1;
	year=m_year.GetCurSel()+1999;
	if(year>2000)
		year=year-2000;
	else
		year=year-1900;
	month=m_month.GetCurSel()+1;
	day=m_day.GetCurSel()+1;
	hour=m_hour.GetCurSel();
	min=m_min.GetCurSel();
	sec=m_sec.GetCurSel();
	if(sec=1)
		sec=0;
	else
		sec=30;
	
	CDialog::OnOK();
}

BOOL CSingleEpochDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_prn.SetCurSel(0);
	m_year.SetCurSel(0);
	m_month.SetCurSel(0);
	m_day.SetCurSel(0);
	m_hour.SetCurSel(0);
	m_min.SetCurSel(0);
	m_sec.SetCurSel(0);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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