---------------------------------------------------------------------------
| 91 | |
| 92 | //--------------------------------------------------------------------------- |
| 93 | void __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 | //--------------------------------------------------------------------------- |
| 108 | void __fastcall DownloadInstallerThread::OnReceiveData(TObject* const Sender, __int64 AContentLength, __int64 AReadCount, bool& Abort) |
nothing calls this directly
no outgoing calls
no test coverage detected