mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 05:15:00 -06:00
9.34
This commit is contained in:
committed by
Kornel Lesiński
parent
83f8ddcc5b
commit
f08f4dcc3c
16
CPP/7zip/UI/FileManager/ProgressDialog.cpp
Executable file → Normal file
16
CPP/7zip/UI/FileManager/ProgressDialog.cpp
Executable file → Normal file
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user