Skip to content

Latest commit

 

History

History
68 lines (39 loc) · 1.76 KB

ipm-setrange.md

File metadata and controls

68 lines (39 loc) · 1.76 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
IPM_SETRANGE message (Commctrl.h)
Sets the valid range for the specified field in the IP address control.
03068c5d-822f-459d-8f79-e7f0430a27bf
IPM_SETRANGE message Windows Controls
apiref
IPM_SETRANGE
Commctrl.h
HeaderDef
reference
05/31/2018

IPM_SETRANGE message

Sets the valid range for the specified field in the IP address control.

Parameters

wParam

A zero-based field index to which the range will be applied.

lParam

A WORD value that contains the lower limit of the range in the low-order byte and the upper limit in the high-order byte. Both of these values are inclusive. The MAKEIPRANGE macro can also be used to create the range.

Return value

Returns nonzero if successful, or zero otherwise.

Remarks

If the user enters a value in the field that is outside of this range, the control will send the IPN_FIELDCHANGED notification with the entered value. If the value is still outside of the range after sending the notification, the control will attempt to change the entered value to the closest range limit.

Requirements

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