如何制作一个进度条?希望能给我些代码。

解决方案 »

  1.   

    我想不用给你代码自己也能做出来.控制进度条0主要是用它的SetPos方法,设个定时器,SetPos.
      

  2.   

    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);
      

  3.   

    你用www.google.com找找 CProgressCtrl 关键字.
      

  4.   

    给出你关键的函数
    类/对象:CProgressCtrl
    创建:CreateEx()或Create()//一般放在initdialog(如果你的窗口是dialog)或别的init函数中(费对话框窗口,如单文挡放在视图的初始化函数
    中)init函数是响应wm_init..消息德来的
    控制条控制:SetPos()  //一般放在定时器函数中具体的用发参考msdn(由例子)