⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 progressbox.h

📁 7z一个高压缩比的压缩程序源代码,重要的是里面的算法值得学习
💻 H
字号:
// ProgressBox.h

#ifndef __PROGRESSBOX_H
#define __PROGRESSBOX_H

#include "Common/MyString.h"
#include "Common/Types.h"

void ConvertUInt64ToStringAligned(UInt64 value, char *s, int alignSize);

class CMessageBox
{
  AString _title;
  int _width;
public:
  void Init(const AString &title, int width);
  void ShowMessages(const char *strings[], int numStrings);
};

class CProgressBox: public CMessageBox
{
  AString _prevMessage;
  AString _prevPercentMessage;
  bool _wasShown;
public:
  void Init(const AString &title, int width);
  void Progress(const UInt64 *total, const UInt64 *completed, const AString &message);
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -