geodlg.h
来自「计算地理距离和方位角的程序」· C头文件 代码 · 共 81 行
H
81 行
// 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 + =
减小字号Ctrl + -
显示快捷键?