BCGControlBar Pro for MFC
double CBCGPStepProgressBarRenderer::GetOptimalSize ( CFont *  pFont,
int  nSize 
)

Retrieves the optimal size of the step progress bar.

Parameters
pFontThe pointer to the font that will be used for the size calculation.
nSizeThe control width in case of the horizontal layout or control height if the layout is vertical.
Returns
The suggested height in case of the horizontal layout or width if the layout is vertical.