<< Back
// GetFileNameDlg.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 "GetFileNameDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

/////////////////////////////////////////////////////////////////////////////
// CGetFileNameDlg dialog

IMPLEMENT_DYNAMIC(CGetFileNameDlg, CDialog)

CGetFileNameDlg::CGetFileNameDlg(CWnd* pParent /*=NULL*/) :
    CDialog(CGetFileNameDlg::IDD, pParent)
{
    //{{AFX_DATA_INIT(CGetFileNameDlg)
    //}}AFX_DATA_INIT
} // CGetFileNameDlg


CGetFileNameDlg::~CGetFileNameDlg()
{
} // ~CGetFileNameDlg


void CGetFileNameDlg::DoDataExchange(CDataExchange* pDX)
{
    // call the base class function
    CDialog::DoDataExchange(pDX);

    //{{AFX_DATA_MAP(CSampleCPPDlg)
    DDX_Text(pDX, IDC_FILE_NAME, m_sFileName);
    //}}AFX_DATA_MAP
} // DoDataExchange

BEGIN_MESSAGE_MAP(CGetFileNameDlg, CDialog)
    //{{AFX_MSG_MAP(CGetFileNameDlg)
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGetFileNameDlg message handlers

BOOL CGetFileNameDlg::OnInitDialog()
{
    // call the base class function
    CDialog::OnInitDialog();

    return (TRUE);  // return TRUE  unless you set the focus to a control
} // OnInitDialog


void CGetFileNameDlg::OnOK()
{
    // copy from the dialog
    if (UpdateData())
        CDialog::OnOK();
} // OnOK