16,472
社区成员
发帖
与我相关
我的任务
分享
progDlg.Create(IDD_PROGRESSDLG_DIALOG);
progDlg.ShowWindow(SW_SHOW);//显示窗口
CListBox* clb = (CListBox*)progDlg.GetDlgItem(IDC_LIST1);
CProgressCtrl* cpc = (CProgressCtrl*)progDlg.GetDlgItem(IDC_PROGRESS1);
clb->AddString("haha");
cpc->SetRange(0, 100);
cpc->SetStep(1);
for (int i = 0; i<100; i++)
{
cpc->StepIt();
Sleep(10);
}
clb->AddString("hehe");
SetTimer(timer1, 100, NULL);
SetTimer(timer2, 100, NULL);
SetTimer(timer3, 100, NULL);