1、代码如下所示
CBCGPProgressDlg dlg;
CBCGPProgressDlgParams params;
params.m_nRangeMax = 0;
params.m_nRangeMax = 10000;
params.m_strCaption = L"进度条标题";
params.m_strMessage = L"测试";
params.m_strMessage2 = L"测试1";
dlg.Create(params, theApp.GetMainWnd());
for (int nIndex = 0; nIndex < 10000; nIndex++)
{
if (dlg.IsCancelled())
{
}
dlg.SetPos(nIndex);
}
2、效果图如下:











