BCGSuite for MFC
long CBCGPProgressDlg::StepIt ( BOOL  bWaitForMessages = TRUE)

Advances the current position for a progress bar control by the step increment and redraws the bar to reflect the new position.

Returns
The previous position of the progress bar control.

The step increment is set by the CBCGPProgressDlgParams::m_nStep variable.

Parameters
bWaitForMessagesSet this parameter to FALSE in order to prevent unnecessary waiting for messages (e.g. allow the progress to advance without any additional messages to be sent to progress control).