SRGraphComponent::DrawStyledLine

void SRGraphComponent::DrawStyledLine(CPoint ptStart, CPoint ptEnd, SRGraphStyle * ptrStyle, int nKey, DWORD dwStyleOverride, SRGraphData * pData)

Draws a line between two points using a frame style from the given SRGraphStyle object

Defined in: SRGComp.cpp

Parameters

ptStart

Start point of the line

ptEnd

End point of the line

ptrStyle

Pointer to the SRGraphStyle object from which frame information will be drawn

nKey

Key or index which will be passed to CreateAutoPen if the style is CX_FRAME_AUTOMATIC and an auto-styled line is required

dwStyleOverride

DWORD containing style settings that override the frame style in the ptrStyle parameter

pData

A pointer to the data item. Used in automatic labelling. The default is NULL.

See also...

Frame styles

Remarks

This function is intended to make addition of custom graph types easier.