PBM_GETRANGE message

Retrieves information about the current high and low limits of a given progress bar control.

Parameters

wParam

Flag value specifying which limit value is to be used as the message's return value. This parameter can be one of the following values:

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

lParam

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 wParam.

Return value

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

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h