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

Method OnDownloading

lib_acl_cpp/samples/gui_rpc/gui_rpcDlg.cpp:343–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341//////////////////////////////////////////////////////////////////////////
342
343void Cgui_rpcDlg::OnDownloading(long long int content_length,
344 long long int total_read)
345{
346 if (content_length > 0)
347 {
348 int nStept;
349
350 nStept = (int) ((total_read * 100) / (content_length));
351 m_wndMeterBar.GetProgressCtrl().SetPos(nStept);
352 }
353
354 CString msg;
355 msg.Format("�� %I64d �ֽ�", total_read);
356 m_wndMeterBar.SetText(msg, 1, 0);
357}
358
359void Cgui_rpcDlg::OnDownloadOver(long long int total_read, double spent)
360{

Callers 1

rpc_wakeupMethod · 0.80

Calls 2

SetPosMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected