Hi all,
I am trying to set different colors in the Progress bar.
CProgressCtrl m_progress;
SetWindowTheme(m_progress, _T(""), _T(""));
if (x<50)
m_progress.SendMessage(PBM_SETBARCOLOR, 0, RGB(0,255,0));
else
m_progress.SendMessage(PBM_SETBARCOLOR, 0, RGB(255,0,0));
The else part in the above code changes the whole progress bar color to RED.
Instead I want to have the progress bar displayed as half green and half red.
Is there anyway to achieve this.
I am using Windows 7 and I am unable to even set the progress bar to a stream of rectangles. instead it will always show smooth bar. Please provide a solution