LVectorBase::SetMarker
#include "ltwrappr.h"
virtual L_INT LVectorBase::SetMarker(pMarker)
const pVECTORMARKER pMarker; |
/* pointer to a structure */ |
Sets the new marker settings.
Parameter |
Description |
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: |
|
Topics: |
Example
//This example will toggle the use of pen and brush color red and blue for markers.
L_VOID Example65(HWND hWnd, LVectorBase *pVector)
{
VECTORMARKER Marker;
// Get marker settings
pVector->GetMarker(&Marker );
// Toggle pen and brush color between red and blue
if( Marker.Pen.NewPen.LogPen.lopnColor == RGB( 0xFF, 0x00, 0x00 ) )
{
Marker.Pen.NewPen.LogPen.lopnColor = RGB( 0x00, 0x00, 0xFF );
Marker.Brush.BrushType.StandardBrush.LogBrush.lbColor = RGB( 0x00, 0x00, 0xFF );
}
else
{
Marker.Pen.NewPen.LogPen.lopnColor = RGB( 0xFF, 0x00, 0x00 );
Marker.Brush.BrushType.StandardBrush.LogBrush.lbColor = RGB( 0xFF, 0x00, 0x00 );
}
Marker.dwFlags = Marker.dwFlags | VECTOR_MARKER_PEN_COLOR | VECTOR_MARKER_BRUSH_COLOR;
// Set new marker
pVector->SetMarker (&Marker );
}