Jump to content

SLM SETSCALETEXT

From EDM2

This message sets text above a tick mark for the primary scale. A tick mark does not have to be visible to have text set above it. The text is centered on the tick mark.

Syntax

param1
USHORT usTickNum;   /* Tick mark location. */

param2
PSZ pTickText;      /* Pointer to the text that is to be drawn at the position specified. */

Parameters

usTickNum (USHORT) - Input
Specifies the tick mark location that is to have the text placed with it.
pTickText (PSZ) - Input
Pointer to the text that is to be drawn at the position specified. If this value is NULL, no text is drawn.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: Text was successfully added to the scale.
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 text along the increments of the slider to clarify the magnitude of the range. This text could show the exact value for that tick mark or could be a general remark, such as low, high, and so forth.

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.