SBM SETTHUMBSIZE
Appearance
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.