OSDN Git Service

書庫読み込み時に進捗バーが機能していなかったのを修正。
[tpi/lychee.git] / src / lychee / dlg_process.cpp
index 4f05c2d..54cb22d 100644 (file)
@@ -103,10 +103,6 @@ int ProcessDialog::CallbackProc(unsigned int _uMsg, void * _pStructure)
        case TPI_MESSAGE_STATUS:\r
        {\r
                static int s_nGaugeCounter = 0, s_nInterval = 0;\r
-               if (! this->IsShown())\r
-               {\r
-                       return TPI_CALLBACK_CONTINUE;\r
-               }\r
                switch (piInfo->eStatus)\r
                {\r
                case TPI_STATUS_OPENARCHIVE:\r
@@ -138,15 +134,16 @@ int ProcessDialog::CallbackProc(unsigned int _uMsg, void * _pStructure)
                                s_nGaugeCounter = 0;\r
                        }\r
                        break;\r
-               // 書庫ロード時用の独自仕様。\r
-               case 0x1000:\r
+               // Lycheeの独自仕様。\r
+               case 0x1000: // 初期設定。\r
                        this->ebSource->ChangeValue(piInfo->fiInfo.fnFileName.GetFullPath());\r
+                       this->Update();\r
+               case 0x1001: // 書庫ロード時には最初にファイル数が分からないので、ここで設定。\r
                        this->gArchive->SetRange(piInfo->fiInfo.nUnpackedSize);\r
                        this->gArchive->SetValue(0);\r
-                       this->Update();\r
                        s_nInterval = piInfo->fiInfo.nUnpackedSize / 10;\r
                        break;\r
-               case 0x1001:\r
+               case 0x1002: // 各ファイルの処理を開始。\r
                        if (piInfo->fiInfo.nUnpackedSize > 10000)\r
                        {\r
                                this->ebTarget->ChangeValue(piInfo->fiInfo.fnFileName.GetFullPath());\r