WORD MtrDraw( void * pObj );
This function renders the object on the screen using the current parameter settings. Location of the object is determined by the left, top, right and bottom parameters. The colors used are dependent on the state of the object. The font used is determined by the style scheme set.
Depending on the defined settings, value of the meter will displayed or hidden. Displaying the value will require a little bit more rendering time depending on the size of the meter and font used.
When rendering objects of the same type, each object must be rendered completely before the rendering of the next object is started. This is to avoid incomplete object rendering.
Input Parameters |
Description |
pMtr |
Pointer to the object to be rendered. |
Returns the status of the drawing
- 1 - If the rendering was completed and
- 0 - If the rendering is not yet finished.
Object must be created before this function is called.
none
See MtrCreate() example.