Win32 function to setpos in CProgressCtrl?

I need a Win32 function to set the position of a progress
bar, CProgressCtrl. I've scanned the help files but I
can't find anything.
Who is Participating?
Tommy HuiConnect With a Mentor EngineerCommented:

::SendMessage(m_hWnd, PBM_SETPOS, nPos, 0L);


I think that you should not use PBM_SETPOS message.
The reason is because the range of progress control is 0 to 65,535.
PBM_SETRANGE message use MAKELPARAM macro.
This macro combine both nLower and nUpper.
nLower and nUpper is the range of control.

My answer is you create your progress control.
There is a source code at "".
Good lucks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.