SPBM_SETLIMITS
Appearance
This message causes the component to set or reset numeric limits.
Syntax
param1 LONG lUpLimit; /* Upper limit. */ param2 LONG lLowLimit; /* Lower limit. */
Parameters
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. The component sets the current value to the content in the spin field when it is a valid number. When the current value is out of the range of the limits, it is moved to the nearest limit, upper or lower.
If 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.