home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c10 / query / dialoglatlon.cpp next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.4 KB  |  54 lines

  1. // DialogLatLon.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Query.h"
  6. #include "DialogLatLon.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CDialogLatLon dialog
  16.  
  17.  
  18. CDialogLatLon::CDialogLatLon(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CDialogLatLon::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CDialogLatLon)
  22.     m_EastLongitude = 0.0;
  23.     m_NorthLatitude = 0.0;
  24.     m_SouthLatitude = 0.0;
  25.     m_WestLongitude = 0.0;
  26.     //}}AFX_DATA_INIT
  27. }
  28.  
  29.  
  30. void CDialogLatLon::DoDataExchange(CDataExchange* pDX)
  31. {
  32.     CDialog::DoDataExchange(pDX);
  33.     //{{AFX_DATA_MAP(CDialogLatLon)
  34.     DDX_Text(pDX, IDC_EDIT_ELON, m_EastLongitude);
  35.     DDV_MinMaxDouble(pDX, m_EastLongitude, -180., 180.);
  36.     DDX_Text(pDX, IDC_EDIT_NLAT, m_NorthLatitude);
  37.     DDV_MinMaxDouble(pDX, m_NorthLatitude, -90., 90.);
  38.     DDX_Text(pDX, IDC_EDIT_SLAT, m_SouthLatitude);
  39.     DDV_MinMaxDouble(pDX, m_SouthLatitude, -90., 90.);
  40.     DDX_Text(pDX, IDC_EDIT_WLON, m_WestLongitude);
  41.     DDV_MinMaxDouble(pDX, m_WestLongitude, -180., 180.);
  42.     //}}AFX_DATA_MAP
  43. }
  44.  
  45.  
  46. BEGIN_MESSAGE_MAP(CDialogLatLon, CDialog)
  47.     //{{AFX_MSG_MAP(CDialogLatLon)
  48.         // NOTE: the ClassWizard will add message map macros here
  49.     //}}AFX_MSG_MAP
  50. END_MESSAGE_MAP()
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CDialogLatLon message handlers
  54.