SLM QUERYTICKPOS
Appearance
This message queries for the current position of a tick mark for the primary scale. This represents where the tick mark would be located. The tick mark does not have to have a size (that is, to be visible) to use this message.
Syntax
param1 USHORT usTickNum; /* Tick mark location. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */ returns USHORT xTickPos; /* X-coordinate. */ USHORT yTickPos; /* Y-coordinate. */
Parameters
- usTickNum (USHORT) - Input
- Specifies the tick mark location to query for the position.
- ulReserved (ULONG) - Input
- Reserved value, should be 0.
- xTickPos (USHORT) - Output
- X-coordinate of the point that represents the position of the tick mark. It is the starting position of the tick mark and represents the end of the tick mark closest to the slider shaft.
- yTickPos (USHORT) - Output
- Y-coordinate of the point that represents the position of the tick mark. It is the starting position of the tick mark and represents the end of the tick mark closest to the slider shaft.
- If NULL is returned in either parameter, an error occurred. The WinGetLastError function may return the following error:
- PMERR_PARAMETER_OUT_OF_RANGE.
Remarks
This message could be used to get the position of a tick mark along the slider for use in owner-draw mode if, for example, you want to place something other than text, such as bit maps or icons, above the tick marks.
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.