Index: src/ch/ReplacePathsDlg.cpp =================================================================== diff -u -rd5c3edd0d167db9b5d47d04248820fda49499a5e -rc435ab507c8b8280264188b49e9ada56d46c0261 --- src/ch/ReplacePathsDlg.cpp (.../ReplacePathsDlg.cpp) (revision d5c3edd0d167db9b5d47d04248820fda49499a5e) +++ src/ch/ReplacePathsDlg.cpp (.../ReplacePathsDlg.cpp) (revision c435ab507c8b8280264188b49e9ada56d46c0261) @@ -18,6 +18,7 @@ ***************************************************************************/ #include "stdafx.h" #include "resource.h" +#include "task.h" #include "ReplacePathsDlg.h" #include "dialogs.h" #include "ch.h" @@ -67,9 +68,25 @@ { CLanguageDialog::OnInitDialog(); - for (int i=0;iGetClipboardDataSize();i++) - m_ctlPathsList.AddString(m_pTask->GetClipboardData(i)->GetPath()); + AddResizableControl(IDC_001_STATIC, 0.0, 0.0, 1.0, 0.0); + AddResizableControl(IDC_PATHS_LIST, 0.0, 0.0, 1.0, 1.0); + AddResizableControl(IDC_SOURCE_EDIT, 0.0, 1.0, 1.0, 0.0); + AddResizableControl(IDC_002_STATIC, 0.0, 1.0, 1.0, 0.0); + + AddResizableControl(IDC_DESTINATION_EDIT, 0.0, 1.0, 1.0, 0.0); + AddResizableControl(IDC_BROWSE_BUTTON, 1.0, 1.0, 0.0, 0.0); + AddResizableControl(IDOK, 1.0, 1.0, 0.0, 0.0); + AddResizableControl(IDCANCEL, 1.0, 1.0, 0.0, 0.0); + AddResizableControl(IDC_HELP_BUTTON, 1.0, 1.0, 0.0, 0.0); + + InitializeResizableControls(); + + for(size_t stIndex = 0; stIndex < m_spTask->GetClipboardDataSize(); ++stIndex) + { + m_ctlPathsList.AddString(m_spTask->GetClipboardData(stIndex)->GetPath()); + } + return TRUE; } @@ -95,7 +112,7 @@ void CReplacePathsDlg::OnBrowseButton() { CString strPath; - if (BrowseForFolder(GetResManager()->LoadString(IDS_BROWSE_STRING), &strPath)) + if (BrowseForFolder(GetResManager().LoadString(IDS_BROWSE_STRING), &strPath)) { UpdateData(TRUE); m_strDest=strPath;