Progress Bar Color

The following has no effect...

SendMessage(hProgBarWnd, PBM_SETBARCOLOR, 0, (LPARAM)(COLORREF)RGB(0,0,255));

I've set as one of my flags for INITCOMMONCONTROLSEX the ICC_PROGRESS_CLASS, but no matter what I try, I can't get the bar color to change. I'm using XP.

What am I missing?
I was informed elsewhere that if Themes are on then this flag doesn't work, so that answers my question.
Topic archived. No new replies allowed.