MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / UpdateDownloadProgress

Method UpdateDownloadProgress

Source/GUI/VCL/GUI_Plugin.cpp:93–105  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

91
92//---------------------------------------------------------------------------
93void __fastcall DownloadInstallerThread::UpdateDownloadProgress()
94{
95 Ztring Caption = Ztring(Parent->DownloadLabel->Caption.c_str());
96
97 size_t Pos = Caption.rfind(__T("..."));
98 if (Pos == string::npos)
99 return;
100
101 Caption.erase(Pos + 3);
102 Caption += __T(" ") + Ztring().From_Number(Progress, 0) + __T("%");
103
104 Parent->DownloadLabel->Caption = Caption.c_str();
105}
106
107//---------------------------------------------------------------------------
108void __fastcall DownloadInstallerThread::OnReceiveData(TObject* const Sender, __int64 AContentLength, __int64 AReadCount, bool& Abort)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected