SLM QUERYTICKSIZE
Appearance
This message queries for the size of a tick mark for the primary scale. All tick marks default to a size of 0 (invisible) if not set by the application with the SLM_SETTICKSIZE message.
Syntax
param1 USHORT usTickNum; /* Tick mark location. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */ returns USHORT usTickSize; /* Tick mark length. */
Parameters
- usTickNum (USHORT) - Input
- Specifies the tick mark location to query for the size.
- ulReserved (ULONG) - Input
- Reserved value, should be 0.
Returns
- usTickSize (USHORT) - returns
- Specifies the length of the tick mark at the position queried, in pixels. If this value is 0, the tick mark is invisible.
- If the SLDERR_INVALID_PARAMETERS error is returned, an error occurred. The WinGetLastError function may return the following error:
- PMERR_PARAMETER_OUT_OF_RANGE.
Remarks
The application uses this message to query a scale along the slider to indicate what tick marks, tick mark sizes, or both are currently set for the slider.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it other than to return 0.