4
#include "CopyDialog.h"
6
#include "Common/StringConvert.h"
8
#include "Windows/Control/Static.h"
9
#include "Windows/Shell.h"
10
#include "Windows/FileName.h"
13
#include "LangUtils.h"
16
using namespace NWindows;
19
static CIDLangPair kIDLangPairs[] =
22
{ IDCANCEL, 0x02000710 }
26
bool CCopyDialog::OnInit()
29
LangSetDlgItemsText(HWND(*this), kIDLangPairs, sizeof(kIDLangPairs) / sizeof(kIDLangPairs[0]));
31
_path.Attach(GetItem(IDC_COPY_COMBO));
34
NControl::CStatic staticContol;
35
staticContol.Attach(GetItem(IDC_COPY_STATIC));
36
staticContol.SetText(Static);
37
for (int i = 0; i < Strings.Size(); i++)
38
_path.AddString(Strings[i]);
40
SetItemText(IDC_COPY_INFO, Info);
41
return CModalDialog::OnInit();
44
bool CCopyDialog::OnButtonClicked(int buttonID, HWND buttonHWND)
48
case IDC_COPY_SET_PATH:
52
return CModalDialog::OnButtonClicked(buttonID, buttonHWND);
55
void CCopyDialog::OnButtonSetPath()
58
_path.GetText(currentPath);
62
UString title = LangLoadString(IDS_EXTRACT_SET_FOLDER, 0x02000881);
64
UString title = MyLoadString(IDS_EXTRACT_SET_FOLDER);
67
UString title = LangStringSpec(IDS_SET_FOLDER, 0x03020209);
68
// UString title = L"Specify a location for output folder";
71
if (!NShell::BrowseForFolder(HWND(*this), title, currentPath, resultPath))
73
NFile::NName::NormalizeDirPathPrefix(resultPath);
75
_path.SetText(resultPath);
78
void CCopyDialog::OnOK()