GlobeControlOpenGLDrawing
CoordInputDlg.cpp
// Copyright 2012 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 



// CoordInputDlg.cpp : Implementation of CCoordInputDlg
#include "stdafx.h"
#include "CoordInputDlg.h"

/////////////////////////////////////////////////////////////////////////////
// CCoordInputDlg

LRESULT CCoordInputDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
  SetDlgItemText(IDC_LONGITUDE, L"");
  SetDlgItemText(IDC_LATITUDE, L"");
  
  return 1;  // Let the system set the focus
}

LRESULT CCoordInputDlg::OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
  GetDlgItemText(IDC_LONGITUDE, m_bstrLon.m_str);
  GetDlgItemText(IDC_LATITUDE, m_bstrLat.m_str);
  EndDialog(wID);
  return 0;
}

LRESULT CCoordInputDlg::OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
  return EndDialog(wID);
}