Jump to content

SBM QUERYRANGE

From EDM2
Revision as of 22:12, 20 April 2025 by Martini (talk | contribs) (Created page with "This message returns the scroll bar range minimum and maximum values. ==Syntax== <PRE> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: returns SHORT sfirst; First bound.: SHORT slast; Last bound.: </PRE> ==Parameters== ;ulReserved (ULONG) - Input : Reserved value, should be 0. ;ulReserved (ULONG) - Input : Reserved value, should be 0. ==Returns== ;sfirst (SHORT)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message returns the scroll bar range minimum and maximum values.

Syntax

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

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

returns
SHORT sfirst;     /* First bound. */
SHORT slast;      /* Last bound. */

Parameters

ulReserved (ULONG) - Input
Reserved value, should be 0.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

sfirst (SHORT) - returns
First bound.
slast (SHORT) - returns
Last bound.

Remarks

The scroll bar control window procedure responds to this message by returning the first and last bounds of the scroll bar range.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set ReturnCode to the default value of sfirst and slast to 0.