#include "ltaut.h"
L_LTAUT_API L_INT L_AutSetVectorProperty(pAutomation, pProps);
Sets the vector automation properties.
Pointer to an automation handle.
Pointer to an AUTOMATIONVECTORPROPERTIES structure that contains the new vector automation properties to set.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Note: This function is only available in the vector toolkits.
The properties set by this function include pen, brush and font properties used when drawing new vector objects in the automation container.
Required DLLs and Libraries
This example will set a new pen color.
L_INT AutSetVectorPropertyExample(pAUTOMATIONHANDLE pAutomation,
COLORREF Clr)
{
L_INT nRet;
AUTOMATIONVECTORPROPERTIES Props; /* properties */
ZeroMemory( &Props, sizeof( Props ) );
Props.nSize = sizeof( Props );
Props.dwMask = AUTOMATION_VECTOR_PEN;
nRet = L_AutGetVectorProperty( pAutomation, &Props );
if(nRet != SUCCESS)
return nRet;
Props.Pen.bExtPen = FALSE;
Props.Pen.NewPen.LogPen.lopnColor = Clr;
nRet = L_AutSetVectorProperty(pAutomation, &Props );
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}