mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 14:07:11 -06:00
3.13
This commit is contained in:
369
7zip/FileManager/Resource/ProgressDialog2/ProgressDialog.cpp
Executable file
369
7zip/FileManager/Resource/ProgressDialog2/ProgressDialog.cpp
Executable file
@@ -0,0 +1,369 @@
|
||||
// ProgressDialog.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "resource.h"
|
||||
#include "ProgressDialog.h"
|
||||
#include "Common/IntToString.h"
|
||||
#include "Common/IntToString.h"
|
||||
|
||||
using namespace NWindows;
|
||||
|
||||
static const UINT_PTR kTimerID = 3;
|
||||
static const UINT kTimerElapse = 50;
|
||||
|
||||
#ifdef LANG
|
||||
#include "../../LangUtils.h"
|
||||
#endif
|
||||
|
||||
#ifdef LANG
|
||||
static CIDLangPair kIDLangPairs[] =
|
||||
{
|
||||
{ IDCANCEL, 0x02000C00 },
|
||||
{ IDC_PROGRESS_ELAPSED, 0x02000C01 },
|
||||
{ IDC_PROGRESS_REMAINING, 0x02000C02 },
|
||||
{ IDC_PROGRESS_TOTAL, 0x02000C03 },
|
||||
{ IDC_PROGRESS_SPEED, 0x02000C04 },
|
||||
{ IDC_BUTTON_PROGRESS_PRIORITY, 0x02000C10 },
|
||||
{ IDC_BUTTON_PAUSE, 0x02000C12 },
|
||||
{ IDCANCEL, 0x02000711 },
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef _SFX
|
||||
CProgressDialog::~CProgressDialog()
|
||||
{
|
||||
AddToTitle(L"");
|
||||
}
|
||||
void CProgressDialog::AddToTitle(LPCWSTR s)
|
||||
{
|
||||
if (MainWindow != 0)
|
||||
{
|
||||
CWindow window(MainWindow);
|
||||
window.SetText(s + UString(MainTitle));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
bool CProgressDialog::OnInit()
|
||||
{
|
||||
_range = UINT64(-1);
|
||||
_prevPercentValue = UINT32(-1);
|
||||
_prevElapsedSec = UINT32(-1);
|
||||
_prevRemainingSec = UINT32(-1);
|
||||
_prevSpeed = UINT32(-1);
|
||||
_prevMode = kSpeedBytes;
|
||||
_pevTime = ::GetTickCount();
|
||||
_elapsedTime = 0;
|
||||
_foreground = true;
|
||||
|
||||
#ifdef LANG
|
||||
// LangSetWindowText(HWND(*this), 0x02000C00);
|
||||
LangSetDlgItemsText(HWND(*this), kIDLangPairs, sizeof(kIDLangPairs) / sizeof(kIDLangPairs[0]));
|
||||
#endif
|
||||
|
||||
|
||||
CWindow window(GetItem(IDC_BUTTON_PROGRESS_PRIORITY));
|
||||
window.GetText(backgroundString);
|
||||
backgroundedString = backgroundString;
|
||||
backgroundedString.Replace(L"&", L"");
|
||||
|
||||
window = GetItem(IDC_BUTTON_PAUSE);
|
||||
window.GetText(pauseString);
|
||||
|
||||
foregroundString = LangLoadStringW(IDS_PROGRESS_FOREGROUND, 0x02000C11);
|
||||
continueString = LangLoadStringW(IDS_PROGRESS_CONTINUE, 0x02000C13);
|
||||
pausedString = LangLoadStringW(IDS_PROGRESS_PAUSED, 0x02000C20);
|
||||
|
||||
m_ProgressBar.Attach(GetItem(IDC_PROGRESS1));
|
||||
_timer = SetTimer(kTimerID, kTimerElapse);
|
||||
_dialogCreatedEvent.Set();
|
||||
SetText(_title);
|
||||
SetPauseText();
|
||||
SetPriorityText();
|
||||
return CModalDialog::OnInit();
|
||||
}
|
||||
|
||||
void CProgressDialog::OnCancel()
|
||||
{
|
||||
ProgressSynch.SetStopped(true);
|
||||
}
|
||||
|
||||
static void ConvertSizeToString(UINT64 value, wchar_t *s)
|
||||
{
|
||||
if (value < (UINT64(10000) << 0))
|
||||
{
|
||||
ConvertUINT64ToString(value, s);
|
||||
lstrcatW(s, L" B");
|
||||
return;
|
||||
}
|
||||
if (value < (UINT64(10000) << 10))
|
||||
{
|
||||
ConvertUINT64ToString((value >> 10), s);
|
||||
lstrcatW(s, L" KB");
|
||||
return;
|
||||
}
|
||||
if (value < (UINT64(10000) << 20))
|
||||
{
|
||||
ConvertUINT64ToString((value >> 20), s);
|
||||
lstrcatW(s, L" MB");
|
||||
return;
|
||||
}
|
||||
ConvertUINT64ToString((value >> 30), s);
|
||||
lstrcatW(s, L" GB");
|
||||
return;
|
||||
}
|
||||
|
||||
void CProgressDialog::SetRange(UINT64 range)
|
||||
{
|
||||
_range = range;
|
||||
_previousPos = _UI64_MAX;
|
||||
_converter.Init(range);
|
||||
m_ProgressBar.SetRange32(0 , _converter.Count(range)); // Test it for 100%
|
||||
|
||||
wchar_t s[32];
|
||||
ConvertSizeToString(_range, s);
|
||||
SetItemText(IDC_PROGRESS_SPEED_TOTAL_VALUE, s);
|
||||
}
|
||||
|
||||
void CProgressDialog::SetPos(UINT64 pos)
|
||||
{
|
||||
bool redraw = true;
|
||||
if (pos < _range && pos > _previousPos)
|
||||
{
|
||||
if (pos - _previousPos < (_range >> 10))
|
||||
redraw = false;
|
||||
}
|
||||
if(redraw)
|
||||
{
|
||||
m_ProgressBar.SetPos(_converter.Count(pos)); // Test it for 100%
|
||||
_previousPos = pos;
|
||||
}
|
||||
}
|
||||
|
||||
static void GetTimeString(UINT64 timeValue, TCHAR *s)
|
||||
{
|
||||
wsprintf(s, TEXT("%02d:%02d:%02d"),
|
||||
UINT32(timeValue / 3600),
|
||||
UINT32((timeValue / 60) % 60),
|
||||
UINT32(timeValue % 60));
|
||||
}
|
||||
|
||||
bool CProgressDialog::OnTimer(WPARAM timerID, LPARAM callback)
|
||||
{
|
||||
if (ProgressSynch.GetPaused())
|
||||
return true;
|
||||
UINT64 total, completed;
|
||||
ProgressSynch.GetProgress(total, completed);
|
||||
|
||||
UINT32 curTime = ::GetTickCount();
|
||||
|
||||
if (total != _range)
|
||||
SetRange(total);
|
||||
SetPos(completed);
|
||||
|
||||
_elapsedTime += (curTime - _pevTime);
|
||||
_pevTime = curTime;
|
||||
|
||||
UINT32 elapsedSec = _elapsedTime / 1000;
|
||||
|
||||
bool elapsedChanged = false;
|
||||
if (elapsedSec != _prevElapsedSec)
|
||||
{
|
||||
TCHAR s[40];
|
||||
GetTimeString(elapsedSec, s);
|
||||
SetItemText(IDC_PROGRESS_ELAPSED_VALUE, s);
|
||||
_prevElapsedSec = elapsedSec;
|
||||
elapsedChanged = true;
|
||||
}
|
||||
|
||||
if (completed != 0 && elapsedChanged)
|
||||
{
|
||||
UINT64 remainingTime = 0;
|
||||
if (completed < total)
|
||||
remainingTime = _elapsedTime * (total - completed) / completed;
|
||||
UINT64 remainingSec = remainingTime / 1000;
|
||||
if (remainingSec != _prevRemainingSec)
|
||||
{
|
||||
TCHAR s[40];
|
||||
GetTimeString(remainingSec, s);
|
||||
SetItemText(IDC_PROGRESS_REMAINING_VALUE, s);
|
||||
_prevRemainingSec = remainingSec;
|
||||
}
|
||||
// if (elapsedChanged)
|
||||
{
|
||||
UINT64 speedB = (completed * 1000) / _elapsedTime;
|
||||
UINT64 speedKB = speedB / 1024;
|
||||
UINT64 speedMB = speedKB / 1024;
|
||||
const UINT32 kLimit1 = 10;
|
||||
TCHAR s[40];
|
||||
bool needRedraw = false;
|
||||
if (speedMB >= kLimit1)
|
||||
{
|
||||
if (_prevMode != kSpeedMBytes || speedMB != _prevSpeed)
|
||||
{
|
||||
ConvertUINT64ToString(speedMB, s);
|
||||
lstrcat(s, TEXT(" MB/s"));
|
||||
_prevMode = kSpeedMBytes;
|
||||
_prevSpeed = speedMB;
|
||||
needRedraw = true;
|
||||
}
|
||||
}
|
||||
else if (speedKB >= kLimit1)
|
||||
{
|
||||
if (_prevMode != kSpeedKBytes || speedKB != _prevSpeed)
|
||||
{
|
||||
ConvertUINT64ToString(speedKB, s);
|
||||
lstrcat(s, TEXT(" KB/s"));
|
||||
_prevMode = kSpeedKBytes;
|
||||
_prevSpeed = speedKB;
|
||||
needRedraw = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_prevMode != kSpeedBytes || speedB != _prevSpeed)
|
||||
{
|
||||
ConvertUINT64ToString(speedB, s);
|
||||
lstrcat(s, TEXT(" B/s"));
|
||||
_prevMode = kSpeedBytes;
|
||||
_prevSpeed = speedB;
|
||||
needRedraw = true;
|
||||
}
|
||||
}
|
||||
if (needRedraw)
|
||||
SetItemText(IDC_PROGRESS_SPEED_VALUE, s);
|
||||
}
|
||||
}
|
||||
|
||||
if (total == 0)
|
||||
total = 1;
|
||||
UINT32 percentValue = (UINT32)(completed * 100 / total);
|
||||
if (percentValue != _prevPercentValue)
|
||||
{
|
||||
wchar_t s[64];
|
||||
ConvertUINT64ToString(percentValue, s);
|
||||
UString title = s;
|
||||
title += L"% ";
|
||||
if (!_foreground)
|
||||
{
|
||||
title += backgroundedString;
|
||||
title += L" ";
|
||||
}
|
||||
SetText(title + _title);
|
||||
#ifndef _SFX
|
||||
AddToTitle(title + MainAddTitle);
|
||||
#endif
|
||||
_prevPercentValue = percentValue;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
////////////////////
|
||||
// CU64ToI32Converter
|
||||
|
||||
static const UINT64 kMaxIntValue = 0x7FFFFFFF;
|
||||
|
||||
void CU64ToI32Converter::Init(UINT64 range)
|
||||
{
|
||||
_numShiftBits = 0;
|
||||
while(range > kMaxIntValue)
|
||||
{
|
||||
range >>= 1;
|
||||
_numShiftBits++;
|
||||
}
|
||||
}
|
||||
|
||||
int CU64ToI32Converter::Count(UINT64 aValue)
|
||||
{
|
||||
return int(aValue >> _numShiftBits);
|
||||
}
|
||||
|
||||
const UINT CProgressDialog::kCloseMessage = WM_USER + 1;
|
||||
|
||||
bool CProgressDialog::OnMessage(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch(message)
|
||||
{
|
||||
case kCloseMessage:
|
||||
{
|
||||
KillTimer(_timer);
|
||||
_timer = 0;
|
||||
End(0);
|
||||
return true;
|
||||
}
|
||||
case WM_SETTEXT:
|
||||
{
|
||||
if (_timer == 0)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return CModalDialog::OnMessage(message, wParam, lParam);
|
||||
}
|
||||
|
||||
void CProgressDialog::SetPauseText()
|
||||
{
|
||||
SetItemText(IDC_BUTTON_PAUSE, ProgressSynch.GetPaused() ?
|
||||
continueString : pauseString);
|
||||
|
||||
SetText(LangLoadStringW(IDS_PROGRESS_PAUSED, 0x02000C20) +
|
||||
UString(L" ") + _title);
|
||||
}
|
||||
|
||||
void CProgressDialog::OnPauseButton()
|
||||
{
|
||||
bool paused = !ProgressSynch.GetPaused();
|
||||
ProgressSynch.SetPaused(paused);
|
||||
UINT32 curTime = ::GetTickCount();
|
||||
if (paused)
|
||||
_elapsedTime += (curTime - _pevTime);
|
||||
_pevTime = curTime;
|
||||
SetPauseText();
|
||||
}
|
||||
|
||||
void CProgressDialog::SetPriorityText()
|
||||
{
|
||||
SetItemText(IDC_BUTTON_PROGRESS_PRIORITY, _foreground ?
|
||||
backgroundString :
|
||||
foregroundString);
|
||||
}
|
||||
|
||||
void CProgressDialog::OnPriorityButton()
|
||||
{
|
||||
_foreground = !_foreground;
|
||||
SetPriorityClass(GetCurrentProcess(), _foreground ?
|
||||
NORMAL_PRIORITY_CLASS: IDLE_PRIORITY_CLASS);
|
||||
SetPriorityText();
|
||||
}
|
||||
|
||||
bool CProgressDialog::OnButtonClicked(int buttonID, HWND buttonHWND)
|
||||
{
|
||||
switch(buttonID)
|
||||
{
|
||||
case IDCANCEL:
|
||||
{
|
||||
bool paused = ProgressSynch.GetPaused();;
|
||||
// ProgressSynch.SetPaused(true);
|
||||
if (!paused)
|
||||
OnPauseButton();
|
||||
int res = ::MessageBoxW(HWND(*this),
|
||||
LangLoadStringW(IDS_PROGRESS_ASK_CANCEL, 0x02000C30),
|
||||
_title, MB_YESNOCANCEL);
|
||||
// ProgressSynch.SetPaused(paused);
|
||||
if (!paused)
|
||||
OnPauseButton();
|
||||
if (res == IDCANCEL || res == IDNO)
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
case IDC_BUTTON_PAUSE:
|
||||
OnPauseButton();
|
||||
return true;
|
||||
case IDC_BUTTON_PROGRESS_PRIORITY:
|
||||
{
|
||||
OnPriorityButton();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return CModalDialog::OnButtonClicked(buttonID, buttonHWND);
|
||||
}
|
||||
160
7zip/FileManager/Resource/ProgressDialog2/ProgressDialog.h
Executable file
160
7zip/FileManager/Resource/ProgressDialog2/ProgressDialog.h
Executable file
@@ -0,0 +1,160 @@
|
||||
// ProgressDialog.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __PROGRESSDIALOG_H
|
||||
#define __PROGRESSDIALOG_H
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
#include "Windows/Control/Dialog.h"
|
||||
#include "Windows/Control/ProgressBar.h"
|
||||
#include "Windows/Synchronization.h"
|
||||
|
||||
class CProgressSynch
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSection _criticalSection;
|
||||
bool _stopped;
|
||||
bool _paused;
|
||||
UINT64 _total;
|
||||
UINT64 _completed;
|
||||
public:
|
||||
CProgressSynch(): _stopped(false), _paused(false), _total(1), _completed(0) {}
|
||||
|
||||
bool GetStopped()
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
|
||||
return _stopped;
|
||||
}
|
||||
void SetStopped(bool value)
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
|
||||
_stopped = value;
|
||||
}
|
||||
bool GetPaused()
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
|
||||
return _paused;
|
||||
}
|
||||
void SetPaused(bool value)
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
|
||||
_paused = value;
|
||||
}
|
||||
void SetProgress(UINT64 total, UINT64 completed)
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
|
||||
_total = total;
|
||||
_completed = completed;
|
||||
}
|
||||
void SetPos(UINT64 completed)
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
|
||||
_completed = completed;
|
||||
}
|
||||
void GetProgress(UINT64 &total, UINT64 &completed)
|
||||
{
|
||||
NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
|
||||
total = _total;
|
||||
completed = _completed;
|
||||
}
|
||||
};
|
||||
|
||||
class CU64ToI32Converter
|
||||
{
|
||||
UINT64 _numShiftBits;
|
||||
public:
|
||||
void Init(UINT64 _range);
|
||||
int Count(UINT64 aValue);
|
||||
};
|
||||
|
||||
// class CProgressDialog: public NWindows::NControl::CModelessDialog
|
||||
|
||||
enum ESpeedMode
|
||||
{
|
||||
kSpeedBytes,
|
||||
kSpeedKBytes,
|
||||
kSpeedMBytes
|
||||
};
|
||||
|
||||
class CProgressDialog: public NWindows::NControl::CModalDialog
|
||||
{
|
||||
private:
|
||||
UString backgroundString;
|
||||
UString backgroundedString;
|
||||
UString foregroundString;
|
||||
UString pauseString;
|
||||
UString continueString;
|
||||
UString pausedString;
|
||||
|
||||
|
||||
|
||||
UINT_PTR _timer;
|
||||
|
||||
UString _title;
|
||||
CU64ToI32Converter _converter;
|
||||
UINT64 _previousPos;
|
||||
UINT64 _range;
|
||||
NWindows::NControl::CProgressBar m_ProgressBar;
|
||||
|
||||
UINT32 _prevPercentValue;
|
||||
UINT32 _pevTime;
|
||||
UINT32 _elapsedTime;
|
||||
UINT32 _prevElapsedSec;
|
||||
UINT64 _prevRemainingSec;
|
||||
ESpeedMode _prevMode;
|
||||
UINT64 _prevSpeed;
|
||||
|
||||
bool _foreground;
|
||||
|
||||
bool OnTimer(WPARAM timerID, LPARAM callback);
|
||||
void SetRange(UINT64 range);
|
||||
void SetPos(UINT64 pos);
|
||||
virtual bool OnInit();
|
||||
virtual void OnCancel();
|
||||
NWindows::NSynchronization::CManualResetEvent _dialogCreatedEvent;
|
||||
#ifndef _SFX
|
||||
void AddToTitle(LPCWSTR string);
|
||||
#endif
|
||||
|
||||
void SetPauseText();
|
||||
void SetPriorityText();
|
||||
void OnPauseButton();
|
||||
void OnPriorityButton();
|
||||
bool OnButtonClicked(int buttonID, HWND buttonHWND);
|
||||
public:
|
||||
CProgressSynch ProgressSynch;
|
||||
|
||||
#ifndef _SFX
|
||||
HWND MainWindow;
|
||||
UString MainTitle;
|
||||
UString MainAddTitle;
|
||||
~CProgressDialog();
|
||||
#endif
|
||||
|
||||
CProgressDialog(): _timer(0)
|
||||
#ifndef _SFX
|
||||
,MainWindow(0)
|
||||
#endif
|
||||
{}
|
||||
|
||||
void WaitCreating() { _dialogCreatedEvent.Lock(); }
|
||||
|
||||
|
||||
INT_PTR Create(const UString &title, HWND aWndParent = 0)
|
||||
{
|
||||
_title = title;
|
||||
return CModalDialog::Create(MAKEINTRESOURCE(IDD_DIALOG_PROGRESS), aWndParent);
|
||||
}
|
||||
|
||||
static const UINT kCloseMessage;
|
||||
|
||||
virtual bool OnMessage(UINT message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
void MyClose()
|
||||
{
|
||||
PostMessage(kCloseMessage);
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
32
7zip/FileManager/Resource/ProgressDialog2/resource.h
Executable file
32
7zip/FileManager/Resource/ProgressDialog2/resource.h
Executable file
@@ -0,0 +1,32 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by resource.rc
|
||||
//
|
||||
#define IDC_BUTTON_PAUSE 3
|
||||
#define IDC_BUTTON_PROGRESS_PRIORITY 4
|
||||
#define IDD_DIALOG_PROGRESS 500
|
||||
#define IDC_PROGRESS1 1000
|
||||
#define IDC_PROGRESS_ELAPSED 1002
|
||||
#define IDC_PROGRESS_ELAPSED_VALUE 1003
|
||||
#define IDC_PROGRESS_REMAINING 1004
|
||||
#define IDC_PROGRESS_REMAINING_VALUE 1005
|
||||
#define IDC_PROGRESS_SPEED 1006
|
||||
#define IDC_PROGRESS_SPEED_VALUE 1007
|
||||
#define IDC_PROGRESS_TOTAL 1008
|
||||
#define IDC_PROGRESS_SPEED_TOTAL_VALUE 1009
|
||||
|
||||
#define IDS_PROGRESS_PAUSED 700
|
||||
#define IDS_PROGRESS_FOREGROUND 701
|
||||
#define IDS_PROGRESS_CONTINUE 702
|
||||
#define IDS_PROGRESS_ASK_CANCEL 703
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 157
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1006
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
127
7zip/FileManager/Resource/ProgressDialog2/resource.rc
Executable file
127
7zip/FileManager/Resource/ProgressDialog2/resource.rc
Executable file
@@ -0,0 +1,127 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Russian resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
#pragma code_page(1251)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#endif // Russian resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_DIALOG_PROGRESS DIALOG DISCARDABLE 0, 0, 246, 78
|
||||
STYLE DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP |
|
||||
WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Progress"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
PUSHBUTTON "&Background",IDC_BUTTON_PROGRESS_PRIORITY,7,57,72,14
|
||||
PUSHBUTTON "&Pause",IDC_BUTTON_PAUSE,92,57,72,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,175,57,64,14
|
||||
LTEXT "Elapsed time:",IDC_PROGRESS_ELAPSED,7,7,71,8
|
||||
RTEXT "00:00:00",IDC_PROGRESS_ELAPSED_VALUE,78,7,42,8
|
||||
LTEXT "Remaining time:",IDC_PROGRESS_REMAINING,7,18,71,8
|
||||
RTEXT "",IDC_PROGRESS_REMAINING_VALUE,78,18,42,8
|
||||
LTEXT "Size:",IDC_PROGRESS_TOTAL,149,7,48,8
|
||||
RTEXT "",IDC_PROGRESS_SPEED_TOTAL_VALUE,197,7,42,8
|
||||
LTEXT "Speed:",IDC_PROGRESS_SPEED,149,18,48,8
|
||||
RTEXT "",IDC_PROGRESS_SPEED_VALUE,197,18,42,8
|
||||
CONTROL "Progress1",IDC_PROGRESS1,"msctls_progress32",PBS_SMOOTH |
|
||||
WS_BORDER,7,34,232,13
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_DIALOG_PROGRESS, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 239
|
||||
VERTGUIDE, 78
|
||||
VERTGUIDE, 120
|
||||
VERTGUIDE, 149
|
||||
VERTGUIDE, 197
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 71
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_PROGRESS_PAUSED "Paused"
|
||||
IDS_PROGRESS_FOREGROUND "&Foreground"
|
||||
IDS_PROGRESS_CONTINUE "&Continue"
|
||||
IDS_PROGRESS_ASK_CANCEL "Are you sure you want to cancel?"
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user