MCPcopy Create free account
hub / github.com/acl-dev/acl / SetBodyLength

Method SetBodyLength

lib_fiber/samples-gui/HttpGet/HttpGetDlg.cpp:305–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void CHttpGetDlg::SetBodyLength(long long length)
306{
307 if (m_length <= 0) {
308 return;
309 }
310
311 UINT n = (UINT) (100 * length / m_length);
312 if (n >= m_lastPos + 1) {
313 m_progress.SetPos(n);
314 m_lastPos = n;
315 }
316}
317
318void CHttpGetDlg::OnBnClickedRadio()
319{

Callers

nothing calls this directly

Calls 1

SetPosMethod · 0.45

Tested by

no test coverage detected