// GetCommandDlg.cpp : implementation file
//
// Copyright © 1997-2008 - Rhino Software, Inc.
// FTP Voyager® is a registered trademark of Rhino Software, Inc.
// http://www.RhinoSoft.com/
//
// Author: Mark P. Peterson
// Date: August 19, 2005
//
// You are free to use/modify this code but leave this header intact.
// This code is public domain so you are free to use it any of your
// applications (Freeware, Trialware, Commercial, etc.). FTP Voyager,
// the FTP Voyager Software Development Kit, and FtpTree ActiveX Control
// are not public domain. Any registration IDs or non-public domain software
// from Rhino Software, Inc. remains copyrighted. For more information
// refer to the license agreement distributed with the FTP Voyager SDK.
//
// If you decide to use the FTP Voyager Software Development Kit, or FtpTree
// ActiveX control, you must first purchase a license. For more information
// visit http://www.RhinoSoft.com/
//------------------------------------------------------------------------------
//
// NOTE: This FTP Voyager SDK sample is more complex than the C Sample found in
// C:\Program Files\RhinoSoft.com\FVSDK\SampleC
// The intent of this sample is to cover all of the FTP Voyager SDK's functionality
//
//------------------------------------------------------------------------------
#include "stdafx.h"
#include "SampleCPP.h"
#include "GetCommandDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
/////////////////////////////////////////////////////////////////////////////
// CGetCommandDlg dialog
IMPLEMENT_DYNAMIC(CGetCommandDlg, CDialog)
CGetCommandDlg::CGetCommandDlg(CWnd* pParent /*=NULL*/) :
CDialog(CGetCommandDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGetCommandDlg)
//}}AFX_DATA_INIT
} // CGetCommandDlg
CGetCommandDlg::~CGetCommandDlg()
{
} // ~CGetCommandDlg
void CGetCommandDlg::DoDataExchange(CDataExchange* pDX)
{
// call the base class function
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSampleCPPDlg)
DDX_Text(pDX, IDC_COMMAND, m_sCommand);
//}}AFX_DATA_MAP
} // DoDataExchange
BEGIN_MESSAGE_MAP(CGetCommandDlg, CDialog)
//{{AFX_MSG_MAP(CGetCommandDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGetCommandDlg message handlers
BOOL CGetCommandDlg::OnInitDialog()
{
// call the base class function
CDialog::OnInitDialog();
return (TRUE); // return TRUE unless you set the focus to a control
} // OnInitDialog
void CGetCommandDlg::OnOK()
{
// copy from the dialog
if (UpdateData())
CDialog::OnOK();
} // OnOK