RegPtDLG.h
上传用户:lbr_007
上传日期:2019-05-31
资源大小:282k
文件大小:2k
- #if !defined(AFX_REGPTDLG_H__CC21D041_A662_4A86_BA2E_C77EA19F8B44__INCLUDED_)
- #define AFX_REGPTDLG_H__CC21D041_A662_4A86_BA2E_C77EA19F8B44__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // RegPtDLG.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // RegPtDLG dialog
- class RegPtDLG : public CDialog
- {
- // Construction
- protected:
- double m_lat;
- double m_lon;
- double m_alt;
- std::string m_name;
- public:
- RegPtDLG(CWnd* pParent = NULL); // standard constructor
- void SetPosition(double lat, double lon, double alt = 1000.0)
- {
- m_lat = lat;
- m_lon = lon;
- m_alt = alt;
- }
- void SetName(const char * name){ m_name = name;}
- double GetLat(void)const{ return m_lat;}
- double GetLon(void)const{ return m_lon;}
- double GetAltitude(void)const{ return m_alt;}
- const char * GetName(void)const{ return m_name.c_str();}
- // Dialog Data
- //{{AFX_DATA(RegPtDLG)
- enum { IDD = IDD_REGPT_DLG };
- CEdit m_altEdit;
- CEdit m_nameEdit;
- CEdit m_lonEdit;
- CEdit m_latEdit;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(RegPtDLG)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(RegPtDLG)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_REGPTDLG_H__CC21D041_A662_4A86_BA2E_C77EA19F8B44__INCLUDED_)