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

📄 geodlg.h

📁 计算地理距离和方位角的程序
💻 H
字号:
// geodlg.h : header file
//

#if !defined(AFX_GEODLG_H__903672A6_362B_11D7_962D_08006912EAE7__INCLUDED_)
#define AFX_GEODLG_H__903672A6_362B_11D7_962D_08006912EAE7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// GeoDlg dialog

class GeoDlg : public CDialog
{
// Construction
public:
	GeoDlg(CWnd* pParent = NULL);	// standard constructor

	void DistanceAndBearing(double lat1, double lon1, double lat2, double lon2,
		double& distance, double& azimuth, int method = 0);

// Dialog Data
	//{{AFX_DATA(GeoDlg)
	enum { IDD = IDD_GEOCALC_DIALOG };
	CEdit	m_lat2deg_edit;
	CEdit	m_lon2sec_edit;
	CEdit	m_lon2min_edit;
	CEdit	m_lon2deg_edit;
	CComboBox	m_lon2_combo;
	CEdit	m_lon1sec_edit;
	CEdit	m_lon1min_edit;
	CEdit	m_lon1deg_edit;
	CComboBox	m_lon1_combo;
	CEdit	m_lat2sec_edit;
	CEdit	m_lat2min_edit;
	CComboBox	m_lat2_combo;
	CEdit	m_lat1sec_edit;
	CEdit	m_lat1min_edit;
	CEdit	m_lat1deg_edit;
	CComboBox	m_lat1_combo;
	CEdit	m_lon2_edit;
	CEdit	m_lon1_edit;
	CEdit	m_lat2_edit;
	CEdit	m_lat1_edit;
	CEdit	m_gc_mi_edit;
	CEdit	m_gc_km_edit;
	CEdit	m_ellipse_mi_edit;
	CEdit	m_ellipse_km_edit;
	CEdit	m_azrad_edit;
	CEdit	m_azdeg_edit;
	CEdit	m_approx_mi_edit;
	CEdit	m_approx_km_edit;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(GeoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(GeoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnCalculate();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GEODLG_H__903672A6_362B_11D7_962D_08006912EAE7__INCLUDED_)

⌨️ 快捷键说明

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