// 2回目以降は何もせず終了。\r
return;\r
}\r
+ MainFrame * frm_main = (MainFrame *) this->hParent;\r
\r
// XRCと結びつけ。\r
this->ebTarget = XRCCTRL(* this, "ebTarget", wxTextCtrl);\r
TPI_PROCESSINFO piInfo;\r
piInfo.eMessage = TPI_MESSAGE_STATUS;\r
piInfo.eStatus = 0x1000;\r
- piInfo.fiInfo.fnFileName = ((MainFrame *) this->hParent)->fnArchive;\r
+ piInfo.fiInfo.fnFileName = frm_main->fnArchive;\r
piInfo.fiInfo.nUnpackedSize = this->nFileCount;\r
this->CallbackProc(TPI_NOTIFY_COMMON, & piInfo);\r
\r
- if (((MainFrame *) this->hParent)->conf.ReadId(CONF_PROCESS_DLG, false))\r
+ if (frm_main->conf.ReadId(CONF_PROCESS_DLG, false))\r
{\r
// 旧来の進捗ダイアログを表示。\r
// ここでOnInitが呼ばれるので、OnInitの最初で無効化している。\r
}\r
\r
// ウインドウの機能を無効化。\r
- MainFrame * frm_main = (MainFrame *) this->hParent;\r
frm_main->tree_ctrl->Freeze();\r
frm_main->list_ctrl->Freeze();\r
frm_main->menubar->EnableTop(0, false);\r
frm_main->toolbar->Enable(false);\r
#ifdef __WINDOWS__\r
// タスクバー。\r
- this->hTBWnd = this->hParent->GetHandle();\r
+ this->hTBWnd = frm_main->GetHandle();\r
\r
::CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList3, (void **) & this->tlTaskbar);\r
if (this->tlTaskbar != NULL)\r
this->ebSource->ChangeValue(piInfo->fiInfo.fnFileName.GetFullPath());\r
this->Update();\r
((MainFrame *) this->hParent)->gFrame->Show();\r
- ::wxSafeYield(this->hParent, true);\r
+// ::wxSafeYield(this->hParent, true);\r
case 0x1001: // 閲覧時は最初にファイル数が分からないので、ここで設定。\r
this->gArchive->SetRange(piInfo->fiInfo.nUnpackedSize);\r
((MainFrame *) this->hParent)->gFrame->SetRange(piInfo->fiInfo.nUnpackedSize);\r
#ifdef __WINDOWS__\r
s_nFileCount = piInfo->fiInfo.nUnpackedSize;\r
#endif\r
-// sw.Start();\r
+ sw.Start();\r
if (piInfo->eStatus == 0x1001)\r
{\r
this->fOpen = true;\r
}\r
break;\r
case 0x1002: // 各ファイルの処理を開始。\r
-// if (sw.Time() > 500)\r
+ if (sw.Time() > 500)\r
{\r
if (this->IsShownOnScreen())\r
{\r
-// sw.Start();\r
+ sw.Start();\r
this->ebTarget->ChangeValue(piInfo->fiInfo.fnFileName.GetFullPath());\r
this->gArchive->SetValue(piInfo->nProcessedSize);\r
this->Update();\r
// ::wxSafeYield(this, true);\r
}\r
-// ::wxSafeYield(this->hParent, true);\r
+ ::wxSafeYield(this->hParent, true);\r
}\r
((MainFrame *) this->hParent)->gFrame->SetValue(piInfo->nProcessedSize);\r
#ifdef __WINDOWS__\r