#include "StdAfx.h" #include "ProgressMgr.h" #include "GlobalFunction.h" CProgressMgr gProgressMgr; CProgressMgr::CProgressMgr(void) { m_WorkProgress = NULL; } CProgressMgr::~CProgressMgr(void) { } //设置当前进度 void CProgressMgr::SetCurProgress(int cur,int total) { double progress = (static_cast(cur)/static_cast(total))*100; if(m_WorkProgress) { m_WorkProgress->SetPos(static_cast(progress)); } }