L_VecSetMarker

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecSetMarker(pVector, pMarker)

pVECTORHANDLE pVector;

/* pointer to a vector handle */

const pVECTORMARKER pMarker;

/* pointer to a structure */

Sets the new marker settings.

Parameter

Description

pVector

Pointer to a vector handle.

pMarker

Pointer to a VECTORMARKER structure that contains the marker settings to set.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The marker is used to indicate those objects within the vector handle that are selected.

For more information on available marker settings, refer to the VECTORMARKER structure.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_VecGetMarker.

Topics:

Working with Vector Handles

Example

This example will set new marker settings.

L_INT VecSetMarkerExample(pVECTORHANDLE pVector)
{
   VECTORMARKER Marker;  /* marker */

   /* Set flags to use pen color and style */
   Marker.dwFlags = VECTOR_MARKER_PEN_STYLE | VECTOR_MARKER_PEN_COLOR;

   /* Set marker to use a blue dot pen */
   Marker.Pen.bExtPen                  = FALSE;
   Marker.Pen.NewPen.LogPen.lopnStyle  = PS_DOT;
   Marker.Pen.NewPen.LogPen.lopnColor  = RGB( 0x00, 0x00, 0xFF );

   /* Set new marker settings */
   return L_VecSetMarker( pVector, &Marker );
}