Jump to content

SBM SETTHUMBSIZE

From EDM2
Revision as of 22:14, 20 April 2025 by Martini (talk | contribs) (Created page with "This message sets the scroll bar slider size. ==Syntax== <PRE> param1 SHORT svisible; Size of the visible part of the document.: SHORT stotal; Size of the entire document.: param2 ULONG ulReserved; Reserved value, should be 0.: </PRE> ==Parameters== ;svisible (SHORT) - Input : Size of the visible part of the document. ;stotal (SHORT) - Input : Size of the entire document. ;ulReserved (ULONG) - Input : Reserved value, should be 0. ==R...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message sets the scroll bar slider size.

Syntax

param1
SHORT svisible;   /* Size of the visible part of the document. */
SHORT stotal;     /* Size of the entire document. */

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

Parameters

svisible (SHORT) - Input
Size of the visible part of the document.
stotal (SHORT) - Input
Size of the entire document.
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 size of the slider proportional to the visible part of the document. If the visible part exceeds or is equal to the entire document the scroll bar is disabled, otherwise the scroll bar is enabled.

The scroll bar 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.