LVectorBase::SetMarker

Summary

Sets the new marker settings.

Syntax

#include "ltwrappr.h"

virtual L_INT LVectorBase::SetMarker(pMarker)

Parameters

const pVECTORMARKER pMarker

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

Returns

Value Meaning
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

See Also

Functions

Topics

Example

This example will toggle the use of pen and brush color red and blue for markers.

L_INT LVectorBase__SetMarkerExample(HWND hWnd, LVectorBase *pVector) 
{ 
   UNREFERENCED_PARAMETER(hWnd); 
 
   L_INT          nRet; 
   VECTORMARKER   Marker;  
 
   // Get marker settings  
   nRet = pVector->GetMarker(&Marker ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   // 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  
   nRet = pVector->SetMarker (&Marker ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.