#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) { if(gExitApp) return; if(cur<=total && total != 0) { double progress = (static_cast(cur)/static_cast(total))*100; if(m_WorkProgress) { m_WorkProgress->SetPos(static_cast(progress)); } } }