/* Copyright (c) 2002-2012 Croteam Ltd. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ // DlgCreateVirtualDirectory.cpp : implementation file // #include "stdafx.h" #include "DlgCreateVirtualDirectory.h" #ifdef _DEBUG #undef new #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDlgCreateVirtualDirectory dialog CDlgCreateVirtualDirectory::CDlgCreateVirtualDirectory(CTString strOldName /*= ""*/, CTString strTitle /*="Create virtual directory"*/, CWnd* pParent /*=NULL*/) : CDialog(CDlgCreateVirtualDirectory::IDD, pParent) { m_strTitle = strTitle; //{{AFX_DATA_INIT(CDlgCreateVirtualDirectory) m_strDirectoryName = CString(strOldName); //}}AFX_DATA_INIT } void CDlgCreateVirtualDirectory::DoDataExchange(CDataExchange* pDX) { INDEX i; CDialog::DoDataExchange(pDX); // if dialog is receiving data if( pDX->m_bSaveAndValidate == FALSE) { } //{{AFX_DATA_MAP(CDlgCreateVirtualDirectory) DDX_Control(pDX, IDC_DIRECTORY_ICON_LIST, m_DirectoryIconsList); DDX_Text(pDX, IDC_EDIT1, m_strDirectoryName); DDV_MaxChars(pDX, m_strDirectoryName, 32); //}}AFX_DATA_MAP // if dialog gives data if( pDX->m_bSaveAndValidate != FALSE) { m_strCreatedDirName = CTString( CStringA(m_strDirectoryName)); m_iSelectedIconType = 0; // Now set selected directory icon type for( i=0; i