/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */ // 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