BCGControlBar Pro for MFC
long CBCGPProgressDlg::SetPos ( long  nCurPos,
BOOL  bWaitForMessages 
)

Sets the current position for a progress bar control and redraws the bar to reflect the new position.

Returns
The previous position of the progress bar control.

Sets the progress bar control's current position as specified by nPos and redraws the bar to reflect the new position. The position of the progress bar control is not the physical location on the screen, but rather is between the upper and lower range indicated in CBCGPProgressDlgParams::m_nRangeMin and CBCGPProgressDlgParams::m_nRangeMax.

Parameters
nCurPosNew position of the progress bar control.
bWaitForMessagesSpecifies whether the dialog should wait for the Windows messages.