SRGraphComponent::DrawBar

void SRGraphComponent::DrawBar(CPoint topleft, CPoint bottomright, int group, int index, SRGraphStyle* ptrStyle, DWORD dwStyleOverride, SRGraphData * pData)

Draws a rectangular bar or polygonal object within the area specified by the coordinates

Defined in: SRGComp.cpp

Parameters

topleft

Top-left corner of the bounding rectangle

bottomright

Bottom-right corner of the bounding rectangle

group

Group of the associated data item

index

Index of the associated data item

ptrStyle

Pointer to the SRGraphStyle object which controls the appearance of this object

dwStyleOverride

Optional, style code that can be used to override the settings in ptrStyle

pData

Optional, pointer to the data object being represented

Remarks

If the object style is OBJECT_POLYGON, the system first searches in the "POLYGON" resource group for a named shape, and then it trys to load a shape from disk using the m_strObjectName member in SRGraphStyle.