add a progress bar into your dialog, add it with a member varible named m_progress, then inital the progress as below: //set the range SendMessage(m_progress, PBM_SETRANGE32, 0, 100); //set the distance for every step SendMessage(m_progress, PBM_SETSTEP, (WPARAM) 1, 0); //after that you can use it in your program SendMessage(m_progress, PBM_STEPIT, 0, 0);
add it with a member varible named m_progress,
then inital the progress as below:
//set the range
SendMessage(m_progress, PBM_SETRANGE32, 0, 100);
//set the distance for every step
SendMessage(m_progress, PBM_SETSTEP, (WPARAM) 1, 0);
//after that you can use it in your program
SendMessage(m_progress, PBM_STEPIT, 0, 0);
类/对象:CProgressCtrl
创建:CreateEx()或Create()//一般放在initdialog(如果你的窗口是dialog)或别的init函数中(费对话框窗口,如单文挡放在视图的初始化函数
中)init函数是响应wm_init..消息德来的
控制条控制:SetPos() //一般放在定时器函数中具体的用发参考msdn(由例子)