diff options
Diffstat (limited to 'CPP/7zip/UI/FileManager/ProgressDialog.cpp')
-rw-r--r--[-rwxr-xr-x] | CPP/7zip/UI/FileManager/ProgressDialog.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/CPP/7zip/UI/FileManager/ProgressDialog.cpp b/CPP/7zip/UI/FileManager/ProgressDialog.cpp index cdb8399e..6c185769 100755..100644 --- a/CPP/7zip/UI/FileManager/ProgressDialog.cpp +++ b/CPP/7zip/UI/FileManager/ProgressDialog.cpp @@ -2,7 +2,7 @@ #include "StdAfx.h" -#include "Common/IntToString.h" +#include "../../../Common/IntToString.h" #include "resource.h" @@ -19,13 +19,6 @@ static const UINT kTimerElapse = 100; #include "LangUtils.h" #endif -#ifdef LANG -static CIDLangPair kIDLangPairs[] = -{ - { IDCANCEL, 0x02000711 } -}; -#endif - HRESULT CProgressSync::ProcessStopAndPause() { for (;;) @@ -54,15 +47,14 @@ void CProgressDialog::AddToTitle(LPCWSTR s) bool CProgressDialog::OnInit() { - _range = (UInt64)-1; + _range = (UInt64)(Int64)-1; _prevPercentValue = -1; _wasCreated = true; _dialogCreatedEvent.Set(); #ifdef LANG - // LangSetWindowText(HWND(*this), 0x02000C00); - LangSetDlgItemsText(HWND(*this), kIDLangPairs, sizeof(kIDLangPairs) / sizeof(kIDLangPairs[0])); + LangSetDlgItemsText(*this, NULL, 0); #endif m_ProgressBar.Attach(GetItem(IDC_PROGRESS1)); @@ -173,7 +165,7 @@ bool CProgressDialog::OnButtonClicked(int buttonID, HWND buttonHWND) bool paused = Sync.GetPaused(); Sync.SetPaused(true); _inCancelMessageBox = true; - int res = ::MessageBoxW(HWND(*this), L"Are you sure you want to cancel?", _title, MB_YESNOCANCEL); + int res = ::MessageBoxW(*this, L"Are you sure you want to cancel?", _title, MB_YESNOCANCEL); _inCancelMessageBox = false; Sync.SetPaused(paused); if (res == IDCANCEL || res == IDNO) |