Jump to content

SPBM OVERRIDESETLIMITS: Difference between revisions

From EDM2
Created page with "This message causes the component to set or reset numeric limits. ==Syntax== <pre> param1 LONG lUpLimit; Upper limit.: param2 LONG lLowLimit; Lower limit.: </pre> ==Parameters== ;lUpLimit (LONG) - input: Upper limit. ;lLowLimit (LONG) - input: Lower limit. ==Returns== ;rc (BOOL) - return: Success indicator. ::TRUE: Successful completion. ::FALSE: Error occurred. ==Remarks== The application sends this message to the component to set or reset..."
 
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:SPBM_OVERRIDESETLIMITS}}
This message causes the component to set or reset numeric limits.
This message causes the component to set or reset numeric limits.



Latest revision as of 02:13, 28 April 2025

This message causes the component to set or reset numeric limits.

Syntax

param1
LONG lUpLimit;   /* Upper limit. */

param2
LONG lLowLimit;  /* Lower limit. */

Parameters

lUpLimit (LONG) - input
Upper limit.
lLowLimit (LONG) - input
Lower limit.

Returns

rc (BOOL) - return
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred.

Remarks

The application sends this message to the component to set or reset numeric limits.

This message is functionally identical to SPBM_SETLIMITS, except that the current value of the spin button does not change if it is out of range.

When the upper limit is less than the lower limit, FALSE is returned.

Default Processing

The default window procedure does not expect to receive this message and takes no action other than to return FALSE.