aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/FileManager/SplitDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/FileManager/SplitDialog.cpp')
-rw-r--r--CPP/7zip/UI/FileManager/SplitDialog.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/CPP/7zip/UI/FileManager/SplitDialog.cpp b/CPP/7zip/UI/FileManager/SplitDialog.cpp
index 0c9fdd1..21d812c 100644
--- a/CPP/7zip/UI/FileManager/SplitDialog.cpp
+++ b/CPP/7zip/UI/FileManager/SplitDialog.cpp
@@ -4,9 +4,7 @@
4 4
5#include "../../../Windows/FileName.h" 5#include "../../../Windows/FileName.h"
6 6
7#ifdef LANG
8#include "LangUtils.h" 7#include "LangUtils.h"
9#endif
10 8
11#include "BrowseDialog.h" 9#include "BrowseDialog.h"
12#include "CopyDialogRes.h" 10#include "CopyDialogRes.h"
@@ -16,7 +14,7 @@
16 14
17using namespace NWindows; 15using namespace NWindows;
18 16
19#ifdef LANG 17#ifdef Z7_LANG
20static const UInt32 kLangIDs[] = 18static const UInt32 kLangIDs[] =
21{ 19{
22 IDT_SPLIT_PATH, 20 IDT_SPLIT_PATH,
@@ -27,9 +25,9 @@ static const UInt32 kLangIDs[] =
27 25
28bool CSplitDialog::OnInit() 26bool CSplitDialog::OnInit()
29{ 27{
30 #ifdef LANG 28 #ifdef Z7_LANG
31 LangSetWindowText(*this, IDD_SPLIT); 29 LangSetWindowText(*this, IDD_SPLIT);
32 LangSetDlgItems(*this, kLangIDs, ARRAY_SIZE(kLangIDs)); 30 LangSetDlgItems(*this, kLangIDs, Z7_ARRAY_SIZE(kLangIDs));
33 #endif 31 #endif
34 _pathCombo.Attach(GetItem(IDC_SPLIT_PATH)); 32 _pathCombo.Attach(GetItem(IDC_SPLIT_PATH));
35 _volumeCombo.Attach(GetItem(IDC_SPLIT_VOLUME)); 33 _volumeCombo.Attach(GetItem(IDC_SPLIT_VOLUME));
@@ -75,7 +73,7 @@ bool CSplitDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize)
75 return false; 73 return false;
76} 74}
77 75
78bool CSplitDialog::OnButtonClicked(int buttonID, HWND buttonHWND) 76bool CSplitDialog::OnButtonClicked(unsigned buttonID, HWND buttonHWND)
79{ 77{
80 switch (buttonID) 78 switch (buttonID)
81 { 79 {
@@ -91,7 +89,7 @@ void CSplitDialog::OnButtonSetPath()
91 UString currentPath; 89 UString currentPath;
92 _pathCombo.GetText(currentPath); 90 _pathCombo.GetText(currentPath);
93 // UString title = "Specify a location for output folder"; 91 // UString title = "Specify a location for output folder";
94 UString title = LangString(IDS_SET_FOLDER); 92 const UString title = LangString(IDS_SET_FOLDER);
95 93
96 UString resultPath; 94 UString resultPath;
97 if (!MyBrowseForFolder(*this, title, currentPath, resultPath)) 95 if (!MyBrowseForFolder(*this, title, currentPath, resultPath))