OSDN Git Service

念のためにTPI_MESSAGE_STATUSではダイアログが表示されているか確認しておくよう変更。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Mon, 10 Jan 2011 13:02:36 +0000 (13:02 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Mon, 10 Jan 2011 13:02:36 +0000 (13:02 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@470 9df91469-1e22-0410-86e7-ea8537beb833

src/lychee/dlg_process.cpp

index 7357285..4f05c2d 100644 (file)
@@ -103,6 +103,10 @@ 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