Jump to content

SBM SETPOS

From EDM2
Revision as of 22:13, 20 April 2025 by Martini (talk | contribs) (Created page with "This message sets the position of the slider in a scroll bar window. ==Syntax== <PRE> param1 SHORT sslider; Position of slider.: param2 ULONG ulReserved; Reserved value, should be 0.: </PRE> ==Parameters== ;sslider (SHORT) - Input : Position of slider. : If this value is outside the scroll-bar range, the slider is moved to the nearest valid position within the range. ;ulReserved (ULONG) - Input : Reserved value, should be 0. ==Returns== ;rc ([...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message sets the position of the slider in a scroll bar window.

Syntax

param1
SHORT sslider;      /* Position of slider. */

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

Parameters

sslider (SHORT) - Input
Position of slider.
If this value is outside the scroll-bar range, the slider is moved to the nearest valid position within the range.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

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

Remarks

The scroll bar control window procedure responds to this message by setting the position of the slider.

The scroll bar control is redrawn to reflect the change.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it.