Saturday, February 28, 2009

fix progress calculation in ProgressWnd.cpp:

fix progress calculation in ProgressWnd.cpp:
method CProgressWnd::SetPos

from :
nPercentage = (nPos*100)/(m_nMaxValue - m_nMinValue);

to:
nPercentage = ((nPos-m_nMinValue)*100)/(m_nMaxValue -
m_nMinValue);

http://www.codeguru.com/cpp/controls/controls/progresscontrols/comments.php/c2293/?thread=15407