SLM SETTICKSIZE
Appearance
This message sets the size of a tick mark for the primary scale. All tick marks are initially set to a size of 0 (invisible). Each tick mark along a scale can be set to the size desired.
Syntax
param1 USHORT usTickNum; /* Tick mark location. */ USHORT usTickSize; /* Tick mark length. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- usTickNum (USHORT) - Input
- Tick mark location whose size is to be changed. If the SMA_SETALLTICKS attribute is specified for this parameter, all tick marks on the primary scale are set to the size specified.
- usTickSize (USHORT) - Input
- Length of the tick mark, in pixels. If set to 0, the tick mark will not be drawn.
- ulReserved (ULONG) - Input
- Reserved value, should be 0.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Tick mark position was successfully set.
- FALSE: An error occurred. The WinGetLastError function may return the following errors:
- PMERR_HEAP_MAX_SIZE_REACHED
- PMERR_PARAMETER_OUT_OF_RANGE.
Remarks
The application uses this message to draw a scale along the slider to indicate value positions in relation to the slider arm. The application can set varying lengths for different increments of the slider to help the user understand the magnitude of the value being set.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it other than to return FALSE.