SECProgressCtrl::CalcProgressRects

BOOLSECProgressCtrl::CalcProgressRects(floatfPct, CRect&rectFilled, CRect&rectEmpty)

Calculate progress bar position rects.

Defined in: progress.cpp

Return Value

Nonzero if successful, otherwise 0.

Parameters

fPct

Percentage to base calculations on.

rectFilled

CRect to return for filled portion of control.

rectEmpty

CRect to return for unfilled portion of control.

Comments

This method calculates the rects for the filled and unfilled portions of the control based on the current extended styles. (See  Create for a list of styles.) Override this method to customize the calculation.

See Also

SECProgressCtrl