PBM_GETRANGE

This message retrieves information about the current high and low limits of a specified progress bar control.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later

Syntax

PBM_GETRANGE wParam = (WPARAM)(BOOL) fWhichLimit;
lParam = (LPARAM)(PPBRANGE) ppBRange;

Parameters

fWhichLimit

Boolean that specifies which limit value is to be used as the message’s return value. It is one of the following values:

Value Description
TRUE Return the low limit.
FALSE Return the high limit.

ppBRange

Pointer to a pointer to a PBRANGE structure that is to be filled with the high and low limits of the progress bar control. If this parameter is set to NULL, the control will return only the limit specified by fWhichLimit.

Return Values

Returns an INT that represents the limit value specified by fWhichLimit. If lParam is not NULL, lParam must point to a PBRANGE structure that is to be filled with both limit values.