mfc进度条颜色怎么更改呢?我错在哪里,因该怎么改?

m_progress.SendMessage(PBM_SETBARCOLOR, 0, (LPARAM)RGB(123, 0, 0));
为什么进度条颜色不能更改?

 m_Progress1.SendMessage(PBM_SETBKCOLOR, 0, RGB(0, 0, 255));    //背景色为蓝色
m_Progress1.SendMessage(PBM_SETBARCOLOR, 0, RGB(255, 0, 0));   //前景色为红色

设置了前景色,需要进度大于零后才能显示出来吧。

http://blog.163.com/wenxianliang08@126/blog/static/83583263201412710599488/

This function only affects the classic mode and not any visual style.

你还是自绘CProgressCtrl实现吧。