Jump to content

SPBM_SETTEXTLIMIT

From EDM2
Revision as of 04:28, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:SPBM_SETTEXTLIMIT}} This message sets the maximum number of characters allowed in a spin field. ==Syntax== <pre> param1 USHORT usLimit; Character limit.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;usLimit (USHORT) - input: Character limit. ::Number of characters to allow. ;ulReserved (ULONG) - input: Reserved value, should be 0. ==Returns== ;rc (BOOL) - return: Success indicator. ::TRUE: Succe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message sets the maximum number of characters allowed in a spin field.

Syntax

param1
USHORT usLimit;    /* Character limit. */

param2
ULONG ulReserved; /* Reserved value, should be 0. */

Parameters

usLimit (USHORT) - input
Character limit.
Number of characters to allow.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

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

Remarks

The application sends this message to set the maximum number of characters allowed in the spin field. The size limit of the spin field is 255 characters. This is the default. When the size exceeds 255 characters, 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.