Sets the vector automation properties.
#include "ltaut.h"
L_LTAUT_API L_INT L_AutSetVectorProperty(pAutomation, pProps);
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.
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;
}